Open vsfeedback opened 1 year ago
The call to CreateEditAndContinueMethodDebugInfoReader
should guard against BadImageFormatException and report good error message.
Uninstalled Postsharp nuget from Tests project
It is very likely that after PostSharp applies its IL transformations the EnC data in the PDB are not valid anymore. In general, Edit and Continue is not supported in projects that use any kind of IL postprocessing.
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] Each time I am trying to debug unit test from Test Explorer I am getting "Feature 'Edit and Continue' is currently unavailable due to an internal error." I had following version of Visual Studio 2022:17.3.6(when error started I had 17.3.3)
To reporuduce:
Things I tried to remedy the situation, but failed to resolve the issue:
System info: Microsoft Visual Studio Enterprise 2022 Version 17.3.6 VisualStudio.17.Release/17.3.6+32929.385 Microsoft .NET Framework Version 4.8.04084
Here is stack trace:
Original Comments
Feedback Bot on 10/13/2022, 09:16 PM:
(private comment, text removed)
Original Solutions
Viachaslau Herasimau solved on 10/22/2022, 04:23 PM, 0 votes:
After the following everything went back to normal:
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.11.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles;analyzers;buildtransitive</IncludeAssets> </PackageReference>
Strange.