Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

Syncs workload manifest logic with dotnet/runtime#122607 and dotnet/runtime#122607 (comment), which enables browser-wasm library mode without requiring the workload.

Changes

  • Removed '$(_UsingBlazorOrWasmSdk)' != 'true' or condition from _WasmNativeWorkloadNeeded property in WorkloadManifest.targets.in

This allows browser-wasm projects to function without the native workload when using Blazor or WebAssembly SDKs, unless other properties explicitly require native features (AOT, native stripping, SIMD configuration, etc.).

The condition previously forced workload requirement for all non-Blazor/non-Wasm SDK scenarios. Now the workload is only needed when specific native features are enabled.

Original prompt

Remove the condition clause '$(_UsingBlazorOrWasmSdk)' != 'true' or from the _WasmNativeWorkloadNeeded property group inside src/Workloads/Manifests/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in.

This keeps the dotnet/sdk workload manifest logic in sync with the change in dotnet/runtime#122607, which enables browser-wasm library mode without requiring the workload.

Related: dotnet/runtime#122607


Summary of change:
In WorkloadManifest.targets.in, remove this line from the _WasmNativeWorkloadNeeded property:

        '$(_UsingBlazorOrWasmSdk)' != 'true' or

Do not change any other content.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Remove condition clause from WasmNativeWorkloadNeeded Remove _UsingBlazorOrWasmSdk condition from browser-wasm workload detection Dec 19, 2025
Copilot AI requested a review from maraf December 19, 2025 13:57
@maraf maraf changed the title Remove _UsingBlazorOrWasmSdk condition from browser-wasm workload detection [wasm] Remove _UsingBlazorOrWasmSdk condition from browser-wasm workload detection Dec 19, 2025
@maraf maraf added this to the 11.0.1xx milestone Dec 19, 2025
@maraf maraf requested review from akoeplinger and lewing December 19, 2025 14:13
@maraf maraf marked this pull request as ready for review December 19, 2025 14:13
Copilot AI review requested due to automatic review settings December 19, 2025 14:13
@maraf maraf enabled auto-merge (squash) December 19, 2025 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR synchronizes the SDK's workload manifest logic with changes made in dotnet/runtime#122607, enabling browser-wasm library mode to function without requiring the native workload when using Blazor or WebAssembly SDKs.

Key Changes

  • Removed the '$(_UsingBlazorOrWasmSdk)' != 'true' or condition from the _WasmNativeWorkloadNeeded property evaluation in the workload manifest

@maraf maraf merged commit 34e2468 into main Dec 19, 2025
34 checks passed
@maraf maraf deleted the copilot/remove-conditional-clause-workload-manifest branch December 19, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants