Repository navigation
Add browser-wasm MSI pack support and workload packs documentation - #8048
Conversation
Add Microsoft.NETCore.App.Runtime.browser-wasm to the RuntimeWorkloadPacksToDownload list in workloads.csproj so MSI wrappers are generated for the new CoreCLR-based browser-wasm runtime pack. Add Browser_CoreCLR_Shortstack to the reuseBuildArtifactsFrom list for the Windows_Workloads job so its packages are available during workload MSI generation. Add docs/VMR-Workload-Packs.md documenting how to add new workload packs to the VMR build, including the MSI generation flow, pipeline artifact dependencies, and a step-by-step checklist. Fixes: dotnet/sdk#55491 Co-authored-by: Copilot App <[email protected]> Copilot-Session: a998aff0-7363-46a5-80f3-e7299bc7d8f8
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR ports a fix from preview7 to main to ensure the new CoreCLR-based Microsoft.NETCore.App.Runtime.browser-wasm runtime pack can be wrapped into Windows MSI workload packages, and updates the VMR pipeline so the workloads build can consume the producing job’s artifacts. It also adds a VMR-focused guide documenting how to onboard workload packs into the MSI-generation and artifact-reuse flow.
Changes:
- Register
Microsoft.NETCore.App.Runtime.browser-wasmfor MSI wrapper generation inworkloads.csproj. - Make
Windows_Workloadsreuse artifacts fromBrowser_CoreCLR_Shortstackso the pack is available during pass-2 workload MSI generation. - Add
docs/VMR-Workload-Packs.mddocumenting the MSI generation and pipeline artifact flow, plus a checklist and troubleshooting tips.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/sdk/src/Workloads/VSInsertion/workloads.csproj | Adds the new browser-wasm CoreCLR runtime pack to the explicit MSI wrapper generation input list. |
| eng/pipelines/templates/stages/vmr-verticals.yml | Ensures workloads pass-2 has access to Browser_CoreCLR_Shortstack artifacts for MSI wrapper generation. |
| docs/VMR-Workload-Packs.md | New documentation describing how workload packs/MSIs are wired into the VMR build and pipeline. |
Comments suppressed due to low confidence (2)
docs/VMR-Workload-Packs.md:119
- The troubleshooting symptom shows an invalid package suffix (".msi.-x64"). The workload MSI wrapper package IDs use the ".Msi.x64" (no dash) suffix (case-insensitive).
**Symptom:** `package <PackId>.msi.-x64 not found` when installing a workload on Windows.
docs/VMR-Workload-Packs.md:26
- "BuildWorkloadMsis" does not always generate three MSI nupkgs per pack (RID-specific packs like *.win-x64 only get the matching architecture). The wording here should reflect that it can be one or more MSI packages.
3. **MSI generation** — The `BuildWorkloadMsis` target processes each pack into three MSI nupkgs:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Port of the preview7 fix. I had copilot generate a doc that outlines how the workloads build works in the VMR as hopefully that'll help us and copilot track this in the future. It generally looks right but looking for a review from those who are more familiar with the VMR build. |
Summary
Port of #8047 (preview7 branch fix) to main, with added documentation.
Fixes dotnet/sdk#55491
Problem
The runtime team added a new CoreCLR-based browser-wasm runtime pack (
Microsoft.NETCore.App.Runtime.browser-wasm) to the wasm-tools workload. The NuGet package builds correctly, but the MSI wrapper (microsoft.netcore.app.runtime.browser-wasm.msi.-x64) is never generated because:RuntimeWorkloadPacksToDownloaditem group inworkloads.csprojBrowser_CoreCLR_Shortstackjob's artifacts are not available to the workloads build jobThis causes wasm-tools workload installation to fail on Windows with:
11.0.100-preview.7.26376.106 of package microsoft.netcore.app.runtime.browser-wasm.msi.-x64 not foundChanges
src/sdk/src/Workloads/VSInsertion/workloads.csproj— AddedMicrosoft.NETCore.App.Runtime.browser-wasmtoRuntimeWorkloadPacksToDownloadso MSI wrappers are generated.eng/pipelines/templates/stages/vmr-verticals.yml— AddedBrowser_CoreCLR_Shortstackto thereuseBuildArtifactsFromlist for theWindows_Workloadsjob so its packages are available during workload MSI generation.docs/VMR-Workload-Packs.md(new) — Documentation explaining how to add new workload packs to the VMR build, including:Related PRs
release/11.0.1xx-preview7