-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm] Remove UseMonoRuntime=true from SDK #121789
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <TargetArchitecture>wasm</TargetArchitecture> | ||
|
||
| <UseMonoRuntime>true</UseMonoRuntime> | ||
|
|
||
| <!-- Top level --> | ||
| <WasmBuildAppDependsOn> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this conditional assignment may break scenarios where projects use
Microsoft.NET.Sdk(not the WebAssembly SDK) withRuntimeIdentifier=browser-wasm.The condition
'$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true' and '$(UsingMicrosoftNETSdkWebAssembly)' != 'true'specifically handles cases where the external dotnet/sdk WebAssembly or Blazor SDKs are NOT being used. For example, the console template atsrc/mono/wasm/templates/templates/console/console.0.csprojusesMicrosoft.NET.SdkwithRuntimeIdentifier=browser-wasm, which would fall into this category.If the external dotnet/sdk WasmSDK only sets
UseMonoRuntime=truewhenUsingMicrosoftNETSdkWebAssemblyis true, then removing both this conditional assignment and the unconditional one fromWasmApp.Common.propswould leaveUseMonoRuntimeunset for these scenarios.Please verify that the external WasmSDK sets
UseMonoRuntime=truefor ALL scenarios where browser-wasm or wasi-wasm runtime identifiers are used, not just when using the Microsoft.NET.Sdk.WebAssembly SDK.