dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.06k stars 4.04k forks source link

Adding a new method to .NET MAUI Android using Hot Reload does not produce Rude Edit dialog #56170

Open LyalinDotCom opened 3 years ago

LyalinDotCom commented 3 years ago

I was trying to test the experience of getting a rude edit dialog for an unsupported edit in the Android (Mono) + MAUI app scenario and it did not work as expected

Version Used:

Steps to Reproduce:

       private void OnHiClicked(object sender, EventArgs e)
        {
        }

image

Expected Behavior:

Actual Behavior:

Additional Note:

As extra information I also had a weird breakpoint experience. Putting a breakpoint in the new method that should not have applied, when I pressed the original button that should be working the debugger stopped in the wrong place and when I tried to resume did give me a rude edit dialog

image

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.