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
523
votes
41 answers

Assets file project.assets.json not found. Run a NuGet package restore

I'm trying to use nopCommerce(Which is written in .NET Core) but when I want to run the project I face 52 Errors telling me Run a nuget package restore Assets file ~\obj\project.assets.json' not found. Run a NuGet package restore to generate this…
NeverTrust
  • 5,487
  • 2
  • 13
  • 16
438
votes
7 answers

How to stop browser closing automatically when you stop debugging on VS 2017

I'm trying out the new VS 2017 RC and wondering if anyone knows how to get the previous debugging behavior back In VS 2015 it went like this: Press start debugging Website opens in new Chrome tab Press stop debugging Website is still open and the…
mejobloggs
  • 7,937
  • 6
  • 32
  • 39
429
votes
10 answers

Predefined type 'System.ValueTuple´2´ is not defined or imported

I've installed Visual Studio 15 Preview 3 and tried to use the new tuple feature static void Main(string[] args) { var x = DoSomething(); Console.WriteLine(x.x); } static (int x, int y) DoSomething() { return (1, 2); } When I compile I…
gsharp
  • 27,557
  • 22
  • 88
  • 134
405
votes
20 answers

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it on Chrome I am getting this error: Unable to start program, An operation is not legal in the current state
Radenko Zec
  • 7,659
  • 6
  • 35
  • 39
336
votes
8 answers

Equivalent to AssemblyInfo in dotnet core/csproj

Since dotnet core moved back to the .csproj format, there is a new autogenerated MyProject.AssemblyInfo.cs which contains, among others: [assembly: AssemblyCompany("MyProject")] [assembly: AssemblyVersion("1.0.0.0")] Note that this is automatically…
hultqvist
  • 17,451
  • 15
  • 64
  • 101
329
votes
2 answers

How to disable Perfwatson2.exe from Visual Studio

How do I disable Perfwatson in Visual Studio? Perfwatson is not disabled by Tools > Extensions and Updates > Developer Analytics Tools.
RickAndMSFT
  • 20,912
  • 8
  • 60
  • 78
307
votes
35 answers

How can I fix the Microsoft Visual Studio error: "package did not load correctly"?

I installed Visual Studio 2012 and DevExpress 13.1. As Visual Studio started, it generated an error shown by this attached image, The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly. The problem may have…
Dua Ali
  • 3,163
  • 3
  • 19
  • 13
248
votes
9 answers

How to remove an unpushed outgoing commit in Visual Studio?

I accidentally pushed a staged change in a new branch in Visual Studio 2017 to my local repository. It hasn't been pushed to the remote repository. I want to get rid of it but can't find a way to do this. I rebased from local master branch to the…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
236
votes
8 answers

Visual Studio 2017: Display method references

How can I display the references on top of a method declaration? I looked for it in the Visual Studio properties, but could not find it.
FADI1987
  • 2,377
  • 2
  • 9
  • 5
229
votes
41 answers

Unit Tests not discovered in Visual Studio 2017

I have been struggling with VS 2017 since I installed it. Now it seems Unit Tests will only run from the command line "dotnet test." My project is .NET Core 1.1.1. I have the SDK and the framework update for 1.1.1 installed. I have tried the sample…
John Pezzanite
  • 2,291
  • 2
  • 9
  • 4
219
votes
2 answers

How can I install the VS2017 version of msbuild on a build server without installing the IDE?

Historically, this has been done with the Microsoft Build Tools. But it seems that the Build Tools may not be available for versions after 2015. The replacement appears to be the Visual Studio build tools, which doesn't seem to have a real homepage…
205
votes
10 answers

Can I record/play macros in Visual Studio 2012/2013/2015/2017/2019?

Apparently macros were dropped from Visual Studio 2012. Is there a plugin/extension/tool that will let me record & play keyboard macros (much like the record/play temporary macro in Visual Studio 2010)? For example, I typically would use a macro…
204
votes
24 answers

What do Yellow Warning Triangles mean on Dependencies in Visual Studio 2017?

I have just converted my PCL library to a new .Net Standard library and I have some Yellow Warning triangles on my Dependencies shown below: During the conversion it brought all nuget packages across including dependencies so it could be…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
197
votes
24 answers

VS 15.8.2 broke build tools - missing RuntimeIdentifier

The last windows update has broken our whole build chain and I am a little at a loss at what causes it. I have a legacy project that is a VS 2017 solution with a significant number of projects (winform, couple web based, some Webapi only). Locally…
TomTom
  • 61,059
  • 10
  • 88
  • 148
192
votes
9 answers

Disabling highlighting of current line in the Visual Studio editor

The Visual Studio editor highlights the current line by changing the background color of the current line. Is there a simple way to disable this highlighting? Otherwise, which parameter in Fonts and Colors dialog controls the background color of…
1
2 3
99 100