[HR] Exception while emitting update: System.NullReferenceException #27612
Labels
area-tooling
XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging
platform/android 🤖
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When a specific set of changes are created, a Hot Reload exception may happen as follows:
Which seems to be caused by the removal/rename of methods and the previous body replacement with a exception throwing body (this part is expected).
Steps to Reproduce
MakeMeFail.vs
file and set the top level#if true
to#if false
Link to public reproduction project repository
https://github.com/jeromelaban/MauiIssue-27612
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
No response
Affected platforms
iOS, Windows, Android
Affected platform versions
No response
Did you find any workaround?
This issue may be caused by the fact that the HR workspace is trying to apply changes to a TargetFramework that is not currently being debugged.
Possible workaround:
Relevant log output
The text was updated successfully, but these errors were encountered: