Questions tagged [visual-studio-2019]

Visual Studio 2019 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 2019 is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about Visual Studio 2019. Visual Studio 2019 was released to market (RTM) on April 2nd 2019.

Some Major Changes and Improvements

  • Improved IntelliSense performance for C++ files
  • Local development with many common emulators
  • Simplified test access in Solution Explorer
  • Git management and repo creation in the IDE

New Features

  • One-click code clean-up (Resolve warnings and suggestions with the click of a button.)
  • Visual Studio IntelliCode (Get AI-assisted recommendations that learn from the community.)
  • Visual Studio Live Share (Share code using real-time collaborative development.)

Release notes can be found at the official Microsoft page.

7653 questions
20
votes
6 answers

Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger`1[WebApplication1.Startup]'

I created an ASP.NET Core 3.0 Web Application with the default template in Visual Studio 2019 Preview 2.2 and tried to inject an ILogger in Startup: namespace WebApplication1 { public class Startup { private readonly ILogger…
Chris
  • 935
  • 3
  • 10
  • 21
19
votes
6 answers

Visual Studio 2019 Fails to connect to Mac's installed Visual Studio for Mac after update "No SDK found at specified location"

Before updating my PC's Visual Studio 2019 (v16.8) I was able to build Xamarin apps and connect to my Mac without issue. After updating to Visual Studio 2019 (v16.9), VS went through the normal process of wanting to update the remote Visual Studio…
19
votes
2 answers

Passing environment variables to tests in Visual Studio 2019

Seems like a pretty trivial question, but to my surprise I found no mention of this on the web. I've got an Nunit test project (that someone else wrote and I don't want to change too much), that I need to debug. These tests depend on environment…
19
votes
5 answers

Does .Net Core support User Secrets per environment?

Let's say I have connection string for Development environment specified in appsettings.Development.json and connection string for the Staging environment specified in appsettings.Staging.json All I need to do to switch between Development and…
Joe Schmoe
  • 1,574
  • 4
  • 23
  • 48
19
votes
5 answers

How to upgrade all solution projects .Net framework 4.5.1 to 4.8 Visual Studio 2019

I have a solution in Visual Studio 2019 with many C # projects. I need to retarget all of the projects from the .NET Framework 4.5.1 to 4.8. Is it possible to change target at once or do I have to do it separately with every single one of them? PS:…
mike
  • 1,202
  • 1
  • 7
  • 20
19
votes
8 answers

Error :StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete

My unit tests disappear from TestExplorer of visual Studio 2019 16.3.5 The output from test engine is: [16/10/2019 6:45:48.705 Error] StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
19
votes
14 answers

Visual studio 2019 go to definition and Intellisense not working

I have noticed a weird issue with Visual Studio 2019 v16.0.1 the IntelliSense about "Using directive is unnecessary" normally grey is missing and type reference suggestion for missing using is not working. I also tried with Visual Studio 2019…
19
votes
7 answers

Can not publish since moving to VS 2019

I have recently uninstalled VS 2017 and installed VS 2019. When I publish my website via Web Deploy, if fails with 2 error messages Failed to load publish certificate dialog due to error of Object reference not set to an instance of an object. …
MyDaftQuestions
  • 4,487
  • 17
  • 63
  • 120
19
votes
1 answer

Visual Studio 2010/2012/2013, Class Diagram: how to show interface as base class, not as "lillypop"?

Since the interface is already on the diagram I would like to show inheritance reference explicitly. But I can't find how...
18
votes
1 answer

Check for working C compiler: "cl.exe - skipped" : Visual Studio 2019

When running my build script that uses cmake I am getting the following output during the build process: ********************************************************************** ** Visual Studio 2019 Developer Command Prompt v16.7.5 ** Copyright (c)…
Jinko
  • 311
  • 2
  • 10
18
votes
8 answers

Unable to debug Blazor hosted webassembly 3.2.0 from Visual Studio 2019 16.6.2

I have Visual Studio 2019 16.6.2 installed, along with the .NET Core 3.1.301 SDK and all the necessary Blazor templates. If I create a brand new Blazor WebAssmbly application, I can run it from Visual Studio by pressing Ctrl+F5 and it opens a new…
18
votes
1 answer

Visual Studio 2019 Hanging (not responding) with ASP.NET Core

I am not able to either create or open an ASP.NET Core project using Visual Studio 2019. I left no stone unturned but nothing works so far. Every time opening or creating an ASP.NET Core even with an empty template, Visual Studio starts 'not…
Abdulkarim Kanaan
  • 1,703
  • 4
  • 20
  • 32
18
votes
10 answers

The CreateAppHost task failed unexpectedly. MSB4018

When I try and build my ASP.NET Core project, I continue to get this error message in Visual Studio 2019. When I build it the second time, the error disappears. Does anyone know what this error means and how to get rid of…
roonz11
  • 795
  • 1
  • 13
  • 24
18
votes
2 answers

Why does the C# compiler allow a duplicated variable in nested scope?

Historically, when developing in .Net I could not duplicate the name of variable in nested scope. However, after recently updating Visual Studio 2019 to version 16.4.2 I have noticed that variable names can be duplicated in nested scope. For…
masterjeef
  • 226
  • 1
  • 5
18
votes
4 answers

AspNet Core 3.0 and 3.1 : Enable runtime compilation for Razor Pages

Since ASP.Net Core version 3.0 and higher: A) Editing a Razor View (.cshtml) file while running the application does not apply the changes until restart. B) Looks like edit and continue is not working. IDE and Version: Microsoft Visual Studio…
sajid
  • 283
  • 1
  • 3
  • 9