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
64
votes
6 answers

Visual Studio 2017 errors on standard headers

I just upgraded to Visual Studio 2017 Community Edition and I have trouble loading standard header files. I get 507 errors from various header files. Here are some snippets: Some of the errors: Severity Code Description Project File Line …
o.o
  • 3,563
  • 9
  • 42
  • 71
64
votes
4 answers

Why do I get a "No test adapters are referenced by this solution" error message?

When I start a Live Unit Tests session on my solution in visual studio 2017, I get the following message: No test adapters are referenced by this solution. If you have a test project, add a NuGet reference to a test adapter corresponding to the …
Lorentz Vedeler
  • 5,101
  • 2
  • 29
  • 40
63
votes
4 answers

Should I ignore the launchSettings.json file from being committed in Git?

I find this relatively known GitHub repository, where they considered launchSettings.json file (which is used by Visual Studio 2017 for .Net Core projects) is to be ignored. https://github.com/github/gitignore/blob/master/VisualStudio.gitignore Why…
Mohammed Noureldin
  • 14,913
  • 17
  • 70
  • 99
63
votes
7 answers

How to Enable WiX Projects in Visual Studio 2017

In Visual Studio 2017's New Project dialog, there is no entry for Windows Installer XML (WiX). Is it possible to enable WiX projects in Visual Studio 2017?
Chris Schiffhauer
  • 17,102
  • 15
  • 79
  • 88
61
votes
3 answers

Should GetEnvironmentVariable work in xUnit tests?

If I set environment variables for a .Net Core web project in Visual Studio 2017 using the project properties page, I can read the value of the variable using Environment.GetEnvironmentVariable; however, when I set the environment variable for my…
Eric
  • 2,120
  • 1
  • 17
  • 34
61
votes
22 answers

System could not be found Visual Studio 2017 ASP.NET Core project

I've installed the newly released version of Visual Studio 2017 and started a fresh ASP.NET Core project targeting .NET Core. Out of the box, I'm getting the The type or namespace name 'System' could not be found (are you missing a using…
Sam
  • 26,817
  • 58
  • 206
  • 383
61
votes
11 answers

"Unknown Error" when launching Visual Studio 2017 Community after installation

I am getting an "Unknown Error" (shown below) alert when I try to launch Visual Studio 2017 Community after successful installation. UPDATE: After Force uninstall & reinstallation
Ajay Jadhav
  • 2,417
  • 4
  • 21
  • 26
61
votes
3 answers

Nuget - Package restore failed. Rolling back package changes for 'WebApplication1'. 0

It's my own custom nuget package that I've not published yet and testing locally. The nuget package consists of a dll file and nuspec file is as follows. MyLib 1.0.0
user2727195
  • 7,122
  • 17
  • 70
  • 118
60
votes
4 answers

How to solve the error "Must use PackageReference"?

After adding WindowsRuntime to a WinForms-project, building the project fails with Error "Must use PackageReference". The build log is more precise: C:[...]\Visual Studio…
Joe
  • 741
  • 1
  • 5
  • 6
60
votes
2 answers

How do I set `OutputPath` in a Visual Studio 2017 project (new .csproj file format) without the target framework cluttering the resolved path?

Setting OutputPath in the new Visual Studio 2017 project format automatically adds the target framework in the path. For example, if I have these set in the project…
aksu
  • 1,748
  • 1
  • 11
  • 15
60
votes
6 answers

Enabling c# 7 in a asp.net application

I just started working on my old solution in Visual Studio 2017. Just opening the solution in the old IDE worked seamlessly. The c# application projects now default to the c# 7.0 compiler. The property pages of those project (compilation/advanced)…
davidthegrey
  • 1,205
  • 2
  • 14
  • 23
60
votes
1 answer

Open site in new tab of existing Chrome instance when debugging

When debugging a web application in Visual Studio is it possible to get it to launch in an existing tab of an existing instance of Chrome rather than in a new window when clicking the Launch in Chrome button ?
Fishcake
  • 10,496
  • 7
  • 44
  • 72
59
votes
7 answers

Stuck at "A merge operation in progress"

Steps In Visual Studio Pulled from remote repo 1 merge conflict Merged manually, clicked 'Accept merge' Result Message: "A merge operation is in progress in the ... repository. Commit your changes to complete the merge operation." However, there…
Bernard Vander Beken
  • 4,848
  • 5
  • 54
  • 76
58
votes
7 answers

The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.0-rtm-26515-03 would be used instead

at the moment I have a microservice made in c # with web api and net core 2.0 in the nutget packages I have already found a version 2.1 of net core and I have decided to install it, in order to update my app. I changed the target as shown below But…
dasuma
  • 781
  • 1
  • 6
  • 12
58
votes
2 answers

How do I install Windows 10 SDK for use with Visual Studio 2017

I can't figure out how to install Windows 10 SDK for Visual Studio 2017. I downloaded and ran the Windows 10 SDK installer, and it displays Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit -…
Mich
  • 3,188
  • 4
  • 37
  • 85