Repository navigation
[net11.0] [dotnet] Set DOTNET_MODIFIABLE_ASSEMBLIES environment variable for CoreCLR - #25870
Conversation
…-modifiable-assemblies-env-var
There was a problem hiding this comment.
Pull request overview
This PR updates the generated main.mm initialization code so that DOTNET_MODIFIABLE_ASSEMBLIES=debug is set not only for MonoVM+interpreter scenarios, but also when using the CoreCLR runtime (when managed debug symbols are packaged). This enables modifiable assemblies / hot reload support for CoreCLR-based iOS apps.
Changes:
- Expand the condition for emitting
setenv ("DOTNET_MODIFIABLE_ASSEMBLIES", "debug", 1);to includeXamarinRuntime.CoreCLR. - Keep the existing behavior for interpreter builds (MonoVM) gated on
PackageManagedDebugSymbols.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Is |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #12252a9] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
Yes. We'll remove |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #12252a9] Build passed (Build macOS tests) ✅Pipeline on Agent |
✅ [PR Build #12252a9] Build passed (Build packages) ✅Pipeline on Agent |
🚀 [CI Build #12252a9] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 208 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
When using the interpreter with CoreCLR runtime, set
DOTNET_MODIFIABLE_ASSEMBLIES=debugenvironment variable in the generatedmain.m. This enables hot reload and modifiable assemblies support for CoreCLR on iOS.Cherry-picked from thaystg/xamarin-macios@38db4b5899 (dev/thays/set_modifiable_assemblies_env_var).
Recreation of #25864 (from @matouskozak) beacuse we can't build PRs from forks.