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:
VS Version: Version 17.0.0 Preview 4.0 [31703.37.main]
Add a new button using XAML Hot Reload, example of what I did:
<StackLayout Orientation="Vertical" Grid.Row="3">
<Button
Text="Click"
FontAttributes="Bold"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Center" WidthRequest="90" />
<Button Text="Hi" WidthRequest="90" HorizontalOptions="Center" Clicked="OnHiClicked" />
</StackLayout>
Go to code behind and add a new method for the click event handler
Now click the "Hot Reload" button to apply this unsupported change and you'll see only this:
Expected Behavior:
When I pressed the "Hot Reload" button I should have gotten a rude edit dialog
Actual Behavior:
I got the IntelliSense error under the new method correctly, but did not get a rude edit dialog
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
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:
Create a new regular XAML '.NET MAUI App' using Visual Studio 2022 (environment setup instructions here: https://github.com/dotnet/maui/wiki/Installing-.NET-6)
Run the project under the debugger
Add a new button using XAML Hot Reload, example of what I did:
Go to code behind and add a new method for the click event handler
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