Questions tagged [visual-studio-2017]

Visual Studio 2017 (aka Visual Studio "15", includes C++ compiler version 19.1) is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about this specific version.

Visual Studio 2017 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio 2017. Visual Studio 2017 was released to market (RTM) on March 7th 2017.

Some Major Changes and improvements

  • Modular installation of the IDE
  • Enhanced Performance on opening a solution
  • Extended support for new and Visual Basic 15 language features
  • is available for all TypeScript projects in Visual Studio
  • Support for language features
  • Live Unit Testing

Release notes can be found at the official Microsoft page.

12688 questions
108
votes
1 answer

Relationship between the dotnet cli and the new vs2017 msbuild

With the move from project.json to the new csproj format introduced with VS2017, I'm struggling to understand the difference between the dotnet cli and the new msbuild and when to use one over the other. 1) To build a new csproj netstandard library…
kimsagro
  • 15,513
  • 17
  • 54
  • 69
107
votes
10 answers

No templates in Visual Studio 2017

After a Visual Studio 2017 (RC) installation from scratch, I can't find a standard list of templates. I'm specifically interested in the Console Application (C#) template and the Windows Form (C#) template. I'm pretty sure I'm missing one of the…
Serge V.
  • 3,377
  • 3
  • 20
  • 28
105
votes
2 answers

Visual Studio Run As Admin from Recent solutions list

I would like to run Visual Studio 2017/2019/2022 as admin when I select a project from the recent list in the taskbar, ie. when opening a project via Explorer/Shell shortcuts. I did use the setting: properties -> shortcut -> advanced -> run as admin…
Paul0515
  • 23,515
  • 9
  • 32
  • 47
104
votes
4 answers

How do you multi-target a .NET Core class library with csproj?

When .NET Core still used the project.json format, you could build a class library targeting multiple frameworks (e.g. net451, netcoreapp1.0). Now that the official project format is csproj using MSBuild, how do you specify multiple frameworks to…
Gigi
  • 28,163
  • 29
  • 106
  • 188
104
votes
6 answers

Force uninstall of Visual Studio

While uninstalling Microsoft Visual Studio Ultimate 2015 Preview, it throws an error quoting "Microsoft Visual Studio Ultimate 2015 Preview has stopped working" Message Content Include: A problem caused the program to stop working correctly.…
103
votes
5 answers

Can't choose .NET 4.7

I am trying to start a new project using .NET 4.7. I have Creators Update installed as well as the latest version of Visual Studio 2017. When I start a project and device to choose a .NET version, the latest .NET framework version I have is 4.6.2.…
Michael Puckett II
  • 6,586
  • 5
  • 26
  • 46
101
votes
12 answers

Visual Studio 2017 is too slow during building and debugging

I have just installed Visual Studio 2017 on a PC having the following specifications: Intel Xeon E5-1600 v3 @ 3.50 GHz processor, 16 GB RAM and Windows 10 Pro 64-bit operating system. Although the PC performance is almost perfect, I usually…
user5871859
96
votes
8 answers

Reset NuGet credentials in VS2017

I've specified wrong credentials, which then were remembered. How do I make NuGet forget it?
kagetoki
  • 4,339
  • 3
  • 14
  • 17
96
votes
4 answers

Update Node Version in Visual Studio 2017

Does anyone know of a sanctioned way to update Node within Visual Studio 2017? I've got Node 6 set up on my development PC but VS2017 appears to come with a bundled copy of Node 5, which means that running npm install on my command line sets up…
Henry Wilson
  • 3,281
  • 4
  • 31
  • 46
94
votes
5 answers

Can files be nested in VS2017 Solution Explorer for .NET Core (non-ASP.NET Core) projects?

In "old school" MSBuild projects - as still used by Windows Forms in VS2017 for example - files could be "nested" via a DependentUpon item in the csproj file. I used this to group unit tests together in Noda Time, e.g.
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
94
votes
3 answers

Visual Studio 2017 and the new .csproj InternalsVisibleTo

Where do I put InternalsVisibleTo from AssemblyInfo in the new Visual Studio 2017 .csproj project file?
Luka
  • 4,075
  • 3
  • 35
  • 61
94
votes
5 answers

Visual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core Projects

After installing Visual Studio 2017 Professional I can't build my ASP.NET Core in Visual Studio 2015 Professional anymore. I never opened this project in VS2017 I get The following error occured attempting to run the project model server process…
dfmetro
  • 4,462
  • 8
  • 39
  • 65
94
votes
7 answers

Missing CodeLens references count in Visual Studio Community edition 2015 and 2017

Is there a reason why the references count (code lens) is missing in Visual Studio Community edition? Is is possible to enable it in the options? Here is a screenshot of Visual Studio 2015 and 2017 Community edition: Here is a screenshot of…
H. Pauwelyn
  • 13,575
  • 26
  • 81
  • 144
91
votes
6 answers

ef core doesn't use ASPNETCORE_ENVIRONMENT during update-database

I use visual studio to update all my environments with a certain migration. It had worked fine using the command below. update-database -Migration initMigrationProduct -c ProductContext -Environment Production In ef core 2.0 this command has been…
joakimja
  • 2,707
  • 2
  • 17
  • 25
91
votes
5 answers

How to compile Less/Sass files in Visual Studio 2017+

In VS <= 2015 we can use a WebEssentials extension that takes care for compiling the less/sass files for us, but currently it does not support VS 2017. Is there a similar extension that can compile Less/Sass on build?
Mihail Shishkov
  • 14,129
  • 7
  • 48
  • 59