visual-studio-2015

Git is not ignoring neither checking out .vs folder (VS2015)

孤人 提交于 2020-01-13 19:38:29
问题 In my .gitignore file, there's a line to ignore the Visual Studio 2015 folder (".vs/"), but it's not being ignored. And, besides, I can't use the checkout command. That's what was returned: Untracked files: (use "git add <file>..." to include in what will be committed) .vs/ PS C:\path\to\project> git checkout -- .vs/ error: pathspec '.vs/' did not match any file(s) known to git. What's wrong? 回答1: Try below - git rm -r .vs then open .gitignore and add end of file .vs/ This should work 回答2:

ASP.NET Core Model null error in the Index view

吃可爱长大的小学妹 提交于 2020-01-13 19:34:21
问题 Please see the Error section below. Other related code is as follows: Model : public class Blog { public int BlogId { get; set; } public string Url { get; set; } public List<Post> Posts { get; set; } } public class Post { public int PostId { get; set; } public string Title { get; set; } public string Content { get; set; } public int BlogId { get; set; } public Blog Blog { get; set; } } BlogPostController public IActionResult Index() { return View("~/Views/BlogsTest/Index.cshtml"); } View

Issue pushing symbol packages to Symbol Server

拥有回忆 提交于 2020-01-13 19:11:45
问题 I installed a Symbol Server (following this post: http://www.xavierdecoster.com/setting-up-your-own-symbolsource-server-step-by-step) and push symbol packages to that server. It has been worked so far. But then when I upgraded my machine to Windows 10 & Visual Studio 2015 Enterprise Edition, I can't push my symbol packages (build with VS2015) to symbol server any more. I've tried to search around but don't see any solution fit with my issue This is the issue when I've tried to run push

How do I set the TypeScript compiler version for an ASP.NET 5 MVC 6 project in Visual Studio 2015 RC?

℡╲_俬逩灬. 提交于 2020-01-13 10:54:28
问题 So I'm now at my witts end with this one. As the question in the title asks, I'm trying to set the tsc version for a sample ASP.NET 5 MVC 6 project. I'm using Visual Studio 2015 RC and I want to compile TypeScript using version 1.5 Beta that was recently released. In VS 2013, this was an option page in the project properties. I thought there would be some magic project.json value I could set, but nope. If I could even turn off the compilation (version 1.4) and use a Gulp task, even that would

Error string encoding (Windows 10 + Visual Studio 2015 + Net 4.6)

末鹿安然 提交于 2020-01-13 09:53:52
问题 My code: Keys = new Dictionary<string, string>(); Keys.Add("Набег_0", "raid_0"); When I get Keys.ElementAt(0) , I have this: {[Íàáåã_0, raid_0]} . Of course, when I run the program, key = "Набег_0" is not defined and the program crashes with a System.Collections.Generic.KeyNotFoundException This code worked fine when I had Windows 8.1 + Visual Studio 2013 + net 3.5 How do I fix this? 回答1: You somehow convinced the C# compiler that your source code was written in code page 1251, the default

Error string encoding (Windows 10 + Visual Studio 2015 + Net 4.6)

前提是你 提交于 2020-01-13 09:53:49
问题 My code: Keys = new Dictionary<string, string>(); Keys.Add("Набег_0", "raid_0"); When I get Keys.ElementAt(0) , I have this: {[Íàáåã_0, raid_0]} . Of course, when I run the program, key = "Набег_0" is not defined and the program crashes with a System.Collections.Generic.KeyNotFoundException This code worked fine when I had Windows 8.1 + Visual Studio 2013 + net 3.5 How do I fix this? 回答1: You somehow convinced the C# compiler that your source code was written in code page 1251, the default

How to build windows xp application using Visual studio command line + SCons?

末鹿安然 提交于 2020-01-13 09:12:28
问题 Building a windows xp application using Visual Studio 2015 IDE isn't hard at all, you just need to use the right platform toolset (v120_xp or v140_xp) and just make sure you install the proper redistributable visual studio runtime dlls on the target machine, easy peasy. Now, I've been trying to figure out how to build a windows xp application targetting windows xp without using the VS GUI but using VS2015 command line + SCons All the SCons flags are docummented here but I don't see anything

Unable to update EntityFramework models from MySQL database in Visual Studio 2015 RC

时间秒杀一切 提交于 2020-01-13 08:22:08
问题 My organization upgraded from Visual Studio 2013 to Visual Studio 2015 RC a couple months ago, and we only just now attempted to update some of our existing "db-first" EntityFramework models from our MySQL database. When doing so, we received the following error. An exception of type 'System.ArgumentException' occurred while attempting to update from the database. The exception message is: 'Unable to convert runtime connection string to its design-time equivalent. The libraries required to

Install visual studio 2015 “setup blocked” with 10 errors

放肆的年华 提交于 2020-01-13 06:05:34
问题 who can help me about visual studio 2015 install problem ??? preview windows update error here is the screenshot of the setup blocking: and here are the errors I get for this setup: Condition '(VersionNT = v6.3) AND (WindowsBuildNumber < 9600)' evaluates to false. Condition 'CompatibilityMode = 0' evaluates to false. Condition 'NOT((VersionNT > v6.1) OR (VersionNT = v6.1 AND ServicePackLevel >= 1))' evaluates to false. Condition '(NOT IsLanguagePack) AND ( CurrentOperation = "Install" ) AND (

Will there be a SSRS reportviewer in ASP.NET 5 MVC 6?

别来无恙 提交于 2020-01-13 05:12:05
问题 I am working on upgrading an ASP.NET 4.0 WebForms app to MVC6 and cannot find a solution for displaying SSRS reports. With the absents of System.Web the Microsoft ReportViewer control no longer works. What is the best practice for displaying SSRS reports on the web in ASP.NET 5? 回答1: @Brian - ASP.NET MVC 6 is still in beta stage, its very early to plan for upgrading ASP.NET 4 web forms to MVC 6. Please try using ASP.NET MVC 5 for upgrading web forms, it (MVC5) will be there for many years to