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

Missing LINQ to SQL Classes (DBML designer) in Visual Studio 2017 RC

How can I add LINQ to SQL class (.dbml file) to Visual Studio 2017 RC. I can't find it. Please help, thanks.
Çağatay Ay
  • 973
  • 1
  • 7
  • 8
89
votes
24 answers

Missing value for AzureWebJobsStorage in local.settings.json local development in Visual Studio 2017

I'm developing a azure function locally, with the Storage Emulator and de Storage Explorer opened. File tree local.settings.json { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", …
rubens.lopes
  • 2,265
  • 1
  • 18
  • 23
89
votes
5 answers

Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar

When I mark a word (of any kind) I would like all occurrences (in that particular file) of that word to be highlighted in the scrollbar on the right hand side. This was a feature in VS2015 and VS2013. I cannot imagine that they removed it, I just…
ToFo
  • 1,643
  • 1
  • 19
  • 34
87
votes
2 answers

Error message "CS5001 Program does not contain a static 'Main' method suitable for an entry point"

Unable to execute the following code error CS5001 Program does not contain a static 'Main' method suitable for an entry point What does this error message mean? class Program { static async Task MainAsync(string[] args) { …
001
  • 62,807
  • 94
  • 230
  • 350
84
votes
15 answers

Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0

I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package. I'm then referencing this class library from a .NET Framework 4.6.2 test project. It builds fine, but at runtime I get the…
Dan Ellis
  • 5,537
  • 8
  • 47
  • 73
84
votes
5 answers

Compile a .NET Core application as an EXE file using Visual Studio 2017

I created a .NET Core application (v1.1) in Visual Studio 2017. When I compile it, I get a DLL file produced instead of the expected EXE file for the built project. I did check the csproj file and confirmed the output type is set to exe, but no…
ajawad987
  • 4,439
  • 2
  • 28
  • 45
83
votes
8 answers

Visual Studio 2017 cannot update Microsoft.NETCore.App package ("Blocked by project")

I have a dotnet core app that is targetting Microsoft.NETCore.App 1.1.2. I created a test project to test against that project but when building I noticed this warning: I open the NuGet Package Manager and see that warning is correct, the project…
riqitang
  • 3,241
  • 4
  • 37
  • 47
83
votes
13 answers

ASP.NET Core: Exclude or include files on publish

There were before aspdotnet1.0 include/exclude sections on project.json file { "exclude": [ "node_modules", "bower_components" ], "publishExclude": [ "**.xproj", "**.user", "**.vspscc" ] } Where is this section in…
hcp
  • 3,268
  • 6
  • 26
  • 41
82
votes
16 answers

VS 2017 - Very slow (laggy) when debugging

When I debug my solution, vs 2017 is very laggy and slow it's like it has to operate something heavy in the background. So it stops "responding" every 5 seconds for 2 seconds, which is very annoying. Any suggestions? EDIT (tried…
Muarl
  • 1,977
  • 1
  • 14
  • 18
80
votes
13 answers

rc.exe no longer found in VS 2015 Command Prompt

I just installed Windows 10 Creators Update (version 10.0.15063). I have multiple versions of Visual Studio installed (2012, 2013, 2015 and 2017). I installed VS 2017 only a couple weeks ago. Problem CMake (version 3.8.1) no longer finds the C/C++…
François Beaune
  • 4,270
  • 7
  • 41
  • 65
80
votes
11 answers

VS2017 The operation failed as details for project could not be loaded

I edit the project.csproj. and re-open the solution the errors occurred: The operation failed as details for project xxx could not be loaded I try delete obj & bin folder, clear the nuget cache by tool>options. but the error still exist. Remark:…
Cuiqs
  • 821
  • 1
  • 6
  • 5
79
votes
25 answers

Error NU1105 Unable to find project information - The project file may be invalid or missing targets required for restore

All of a sudden, I am getting the following errors for 3 projects in a solution: Error NU1105 Unable to find project information for 'C:\code\example\src\libs\example.I18n\example.I18n.csproj'. The project file may be invalid or missing targets…
78
votes
4 answers

How do I get a console project to group my appsettings.json files?

If I start a new web api project, the appsettings files are grouped together. However, I'm creating a working project from the console app template and when I create the appsettings files manually, the do not group together. I think back in older…
Sinaesthetic
  • 11,426
  • 28
  • 107
  • 176
78
votes
12 answers

How to get "Manage User Secrets" in a .NET Core console-application?

When I create a new ASP .NET Core Web-Application, I can right-click the project in Visual Studio, and I see a context-menu entry called "Manage User Secrets". When I create a new .NET Core Console-Application, I don't see this context-menu entry.…
user6038265
77
votes
6 answers

Please select a valid startup item

I have migrated from Visual Studio 2008 to VS 2017. I am getting this error when I try to run project with the green play button: Obviously I have to select a valid startup item, but there are two pieces of information I need to do that: what are…
Be Kind To New Users
  • 9,672
  • 13
  • 78
  • 125