Open Rekkonnect opened 5 months ago
I've run into this so many times, probably because I have a tendency to add types wherever I feel like it and then use the move to separate file action later on. Thanks @Rekkonnect for the bug report & workaround!
Wow, amazing job tracking down the repro mechanism for this!
Any updates on this? I hit this issue constantly on Visual Studio
Same her, Version 17.10.4
Still not fix yet?
@nathan130200 nope. but PRs welcome :)
Does this not need to have the "help wanted" label then?
PRs always welcome. Help wanted is more like: better odds of this happening if you just do it :)
Version Used
VS 2022 Version 17.9.5 Roslyn 4.9.0 (a98c90d5645537)
Project info C# 12.0 .NET 8.0
Steps to Reproduce
XYZ.cs
that contains a type named XYZExpected Behavior
Hot Reload works as expected, without any errors.
Actual Behavior
Hot Reload fails, and the following is observed in the output of Hot Reload:
The user is prompted to edit the code or rerun the program anew, after Hot Reload fails.
The bug can be worked around by manually changing and saving changes to the ABC file before hot reloading, without stopping the current execution. Once the file is manually changed, hot reloading works.