Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/7.0] [hot_reload] implement param reflection #77734

Merged
merged 15 commits into from
Nov 3, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 1, 2022

Backport of #77563 to release/7.0

/cc @lambdageek

Customer Impact

In .NET 7 we enabled mobile and WebAssembly users to use Hot Reload to add new functions to existing classes. In MAUI, this allows users to use XAML Hot Reload and C# Hot Reload together to create new elements and attach new event handlers to them in a running hot reload session. This PR fixes a crash when MAUI called the new added callbacks using reflection.

This PR enables a key scenario.

Testing

New CI tests. Manual verification that the PR addresses the MAUI crashes.

Risk

Low. All the new code is gated on a hot reload change being applied to the runtime. In other words, production apps will not run any of the modified code paths.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc label Nov 1, 2022
@lambdageek lambdageek added the Servicing-consider Issue for next servicing release review label Nov 1, 2022
@lambdageek lambdageek added this to the 7.0.x milestone Nov 1, 2022
@marek-safar marek-safar added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 2, 2022
@carlossanlop
Copy link
Member

Approved by Tactics. Signed off by area owner. No OOB package authoring changes needed.
CI failures is an unrelated WASM issue that was just fixed here: #76939 so there's no need to restart the CI.
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 9ef4b1e into release/7.0 Nov 3, 2022
@carlossanlop carlossanlop deleted the backport/pr-77563-to-release/7.0 branch November 3, 2022 00:56
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants