tagged [visual-studio-2019]

ENC1003 C# Changes made in project will not be applied while the application is running

ENC1003 C# Changes made in project will not be applied while the application is running I am getting this incredibly annoying warning for every C# file in my ASP.NET Core project when I debug it after...

The target process exited without raising CoreCLR started event error with .NET Core 2.2

The target process exited without raising CoreCLR started event error with .NET Core 2.2 I want to debug an empty WebApi Project based on .NET Core 2.2. I installed the "Core 2.2 SDK x86" and changed ...

"There was an error running the selected code generator: 'The value -1 outside the acceptable range of [0,2147483647]. Parameter name :value''"

"There was an error running the selected code generator: 'The value -1 outside the acceptable range of [0,2147483647]. Parameter name :value''" I am working on an ASP.NET MVC project and so far I had ...

Breakpoints won't hit in Blazor Webassembly project, ASP.NET Core 3.1,

Breakpoints won't hit in Blazor Webassembly project, ASP.NET Core 3.1, Breakpoints won't hit in ASP.NET Core 3.1, Blazor Webassembly project. I have a solution with a single Blazor Webassembly project...

Prevent a Console App (.NET Core) from printing "exited with code 0." in VS2019 and VS2022

Prevent a Console App (.NET Core) from printing "exited with code 0." in VS2019 and VS2022 When I start a Console App (.NET Core) with Ctrl+F5 (Start Without Debugging) in Visual Studio Community 2019...

Fiddler doesn't capture traffic with "GetAsync"

Fiddler doesn't capture traffic with "GetAsync" I'm trying to debug a call to my ServiceStack web service from a .net 472 application. Fiddler has always been the obvious choice for inspecting traffic...

How to solve the Error MSB3644 in Visual Studio 2019 com. edition?

How to solve the Error MSB3644 in Visual Studio 2019 com. edition? I have a dev machine with - - - I install net plataform sdk 5.0 to run Fluid UI Desktop apps (using C#). When i create and run a blan...

13 Nov at 18:39

Changing the C# version in Visual Studio 2019

Changing the C# version in Visual Studio 2019 I'm using visual studio 2019 and I'm trying to change my C# version. The reason I am doing this is that the build servers I use use an older version of VS...

17 Feb at 21:31

C# 8 Using Declaration Scope Confusion

C# 8 Using Declaration Scope Confusion With the new C# 8 Using Declaration Syntax, what is containing scope of a second consecutive using statement? Previous to C# 8, having a consecutive using statem...

ServiceStack: Running "web new web-corefx ProjectName" creates a .NET Framework 4.x project

ServiceStack: Running "web new web-corefx ProjectName" creates a .NET Framework 4.x project After reading [Servicestack web pages](https://docs.servicestack.net/web-new), I come to the conclusion that...

How to fix: Add a reference to ".NETFramework,Version=v4.7.1" in the "TargetFrameworks" property of your project file and then re-run NuGet restore?

How to fix: Add a reference to ".NETFramework,Version=v4.7.1" in the "TargetFrameworks" property of your project file and then re-run NuGet restore? And yes, I have tried all similar QAs and nothing h...

13 Apr at 09:27

Visual studio 2019 unterminating background processes - high cpu use, lag

Visual studio 2019 unterminating background processes - high cpu use, lag In the most recent version of VS 2019 now 16.3.8 but have had the same issue with other release (16.3.7, 16.3.6, 16.3.5) I am ...

8 Nov at 12:2

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds I'm getting this error after upgrading to angular 9. I'm using visual studio 2019,...

Why does a switch-case statement on a string constant require a default in Visual Studio 2019 (prior to 16.0.3) but not in Visual Studio 2017?

Why does a switch-case statement on a string constant require a default in Visual Studio 2019 (prior to 16.0.3) but not in Visual Studio 2017? I am trying out Visual Studio 2019 on a code base written...

2 May at 09:9

"Analyzer with Code Fix" project template is broken

"Analyzer with Code Fix" project template is broken How to setup a roslyn code analyzer project with a unit-test project in Visual Studio 2019 v16.6.2? A few months (and a few Visual Studio updates) a...

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

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 Previ...

Unable to bind to http://localhost:5000 on the IPv6 loopback interface: 'Cannot assign requested address'

Unable to bind to http://localhost:5000 on the IPv6 loopback interface: 'Cannot assign requested address' I am using asp.net core 3.1 docker enabled project template (VS2019) to develop a web API. The...

ASP.NET Core with React template returns index.html

ASP.NET Core with React template returns index.html I am learning full-stack web development with .NET Core and React, so I created an ASP.NET Core Web Application project with React template in Visua...

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

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 1...