AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Upgrading from ASPNetCore 3.1 to 5.0 breaks blazor debugging (solved)

Open JoelW187 opened this issue 6 years ago • 4 comments

I just installed Visual Studio 2019 16.8.0 and AspNetCore 5.0. I followed the instructions in https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-5.0&tabs=visual-studio and was able to compile but when I tried to run the app under IISExpress from VS2019 it failed with the error "Failed to launch debug adapter. Exception of type 'Microsoft.VisualStudio.Shared.VSCodeDebugProtocolException' was thrown.'"

I shut down VS2019 and "manually" cleaned my solution by deleting every bin and obj folder in all the projects and deleting the .vs<project> folder where the IISExpress config is stored.

After that I restarted VS2019 and was able to launch with blazor debugging enabled and working (breakpoints worked as expected).

Just a heads up that you might want to include this in the migration document.

image


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

JoelW187 avatar Nov 11 '20 16:11 JoelW187

Hello @JoelW187 ... Generally, we regard this as a common situation that affects apps rather widely when they need troubleshooting after a framework update. Sometimes, one has to go even a step further and nuke package caches with dotnet nuget locals --clear all.

@captainsafia, do you think this is going to be common enough that we should mention it in the migration doc?

guardrex avatar Nov 11 '20 16:11 guardrex

@captainsafia assigning this to you to answer the pending question from @guardrex.

mkArtakMSFT avatar Nov 11 '20 18:11 mkArtakMSFT

@captainsafia, do you think this is going to be common enough that we should mention it in the migration doc?

I don't think there's anything specific to debugging that we should document here.

captainsafia avatar Nov 11 '20 19:11 captainsafia

Thanks ... closing.

@JoelW187 ... We'll keep an :ear: open for more reports like that, and they'll probably reconsider if it looks like a common thing happening.

guardrex avatar Nov 11 '20 19:11 guardrex