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
144
votes
9 answers

Can I turn off the Node.js server process associated with Visual Studio 2017?

I'm working on an ASP.NET application in Visual Studio 2017, and I'm noticing a "Node.js: Server-side JavaScript" process running at 1.3 GB to 1.8 GB of memory. My IIS worker process is the normal size it is in Visual Studio 2015. My application…
Ryan Ternier
  • 8,714
  • 4
  • 46
  • 69
143
votes
4 answers

Lambda implicit capture fails with variable declared from structured binding

With the following code, I get a compile error C2065 'a': undeclared identifier (using visual studio 2017): [] { auto [a, b] = [] {return std::make_tuple(1, 2); }(); auto r = [&] {return a; }(); //error C2065 }(); However, the following…
138
votes
28 answers

Visual Studio 2017 - Could not load file or assembly 'System.Runtime, Version=4.1.0.0' or one of its dependencies

I am using Visual Studio 2017 and am trying to create a .Net Standard 1.5 library and use it in a .Net 4.6.2 nUnit test project. I am getting the following error... Could not load file or assembly 'System.Runtime, Version=4.1.0.0, …
Brian
  • 37,399
  • 24
  • 94
  • 109
136
votes
16 answers

The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.3

I want to create a class library project with Target Framework .NET Standard 2.0. I've updated my Visual Studio 2017 to Version 15.3 and also in Visual Studio installer checked .NET Framework 4.7 SDK and .NET Framework 4.7 targeting pack manually…
sahar
  • 1,769
  • 3
  • 13
  • 14
133
votes
5 answers

Where is NuGet.Config file located in Visual Studio project?

I am wondering where is NuGet.Config file located in Visual Studio 2017 project? I tried to create my own NuGet.Config file in the root of the project, but I didn't find any new repositories (NuGet sources). Does some one have any idea? Here is the…
129
votes
26 answers

Assets file obj\project.assets.json doesn't have a target - VS2017

Using Visual Studio 2017, AspNetCore 1.1.2 All of a sudden I am getting following error when I am trying to publish (Release build) any project in the solution: Assets file 'C:\example\obj\project.assets.json' doesn't have a target for …
Paolo B
  • 3,026
  • 5
  • 21
  • 43
126
votes
6 answers

Is there a way to zoom the Visual Studio text editor with a keyboard shortcut?

Yesterday I found myself needing to zoom my Visual Studio text editor and was without a mouse (don't ask). Typically I do this by holding down CTRL and scrolling the mouse wheel. I also couldn't figure out how to tab into the area where you can…
124
votes
9 answers

How to get rid of Naming rule violation messages in Visual Studio?

I just installed Visual Studio 2017. When I open an existing website, I get all sorts of warning messages such as this one: IDE1006 Naming rule violation: These words must begin with upper case characters: swe_calc In the code it is defined as: …
SteveFerg
  • 3,466
  • 7
  • 19
  • 31
121
votes
9 answers

How do I uninstall *all* nuget packages from a solution in Visual Studio

I know I can uninstall-package from the PM console. I got into some dependency issues with another project and I want to start over, and I need to delete all packages in one shot. Is there a way?
119
votes
22 answers

Detected package downgrade warning (dotnet core, vs 2017)

I have just updated all my nuget packages for my solution (dotnet core 1.1 project). I am now getting the following warnings and I don't really know what they mean. Update: I am still getting warnings mentioned above. My web projects warn about…
Nik
  • 2,863
  • 6
  • 24
  • 29
118
votes
29 answers

VS 2017 Metadata file '.dll could not be found

I know there is another question with exact the same problem, but I went trough all those answers, and none helped me. :( (This was the question.) I just created a new ASP.NET MVC project and joined a few '.dll's in the solution. Now when I try to…
Svenmarim
  • 3,633
  • 5
  • 24
  • 56
117
votes
19 answers

Error NU1605 Detected package downgrade

I am experiencing the following NU1605 dependency errors in my netcoreapp2.0 console application: NU1605 Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the project to select a…
Dave New
  • 38,496
  • 59
  • 215
  • 394
113
votes
11 answers

How to run Azure Function app on a different port in Visual Studio

I am setting local host port in local.setting.json. Referring Microsoft doc https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local The file looks like below { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", …
Ramkumar Singh
  • 2,240
  • 4
  • 15
  • 18
113
votes
4 answers

Unable to return Tuple from a method using Visual Studio 2017 and C# 7.0

I've installed Visual Studio 2017 Community that was released a week ago, and I started exploring the new features of C# 7. So I created a simple method that returns two values: public class Program { public static void Main(string[] args) …
Zein Makki
  • 29,485
  • 6
  • 52
  • 63
109
votes
24 answers

Could not load file or assembly 'Microsoft.Build.Framework'(VS 2017)

When I try running the command "update-database", I get this exception: Specify the '-Verbose' flag to view the SQL statements being applied to the target database. System.IO.FileNotFoundException: Could not load file or assembly…
Oleksii Vorochenko
  • 1,226
  • 3
  • 9
  • 10