Skip to content

Add browser-wasm MSI pack support and workload packs documentation - #8048

Merged
akoeplinger merged 1 commit into
mainfrom
fix-browser-wasm-msi-pack-main
Jul 30, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
fix-browser-wasm-msi-pack-main

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

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:

  1. The pack is not listed in the RuntimeWorkloadPacksToDownload item group in workloads.csproj
  2. The Browser_CoreCLR_Shortstack job's artifacts are not available to the workloads build job

This 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 found

Changes

  1. src/sdk/src/Workloads/VSInsertion/workloads.csproj — Added Microsoft.NETCore.App.Runtime.browser-wasm to RuntimeWorkloadPacksToDownload so MSI wrappers are generated.

  2. eng/pipelines/templates/stages/vmr-verticals.yml — Added Browser_CoreCLR_Shortstack to the reuseBuildArtifactsFrom list for the Windows_Workloads job so its packages are available during workload MSI generation.

  3. docs/VMR-Workload-Packs.md (new) — Documentation explaining how to add new workload packs to the VMR build, including:

    • How the MSI generation flow works
    • How the pipeline artifact flow works
    • A step-by-step checklist for adding new packs
    • Troubleshooting guidance

Related PRs

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
Copilot AI review requested due to automatic review settings July 29, 2026 23:08
@marcpopMSFT
marcpopMSFT requested review from a team as code owners July 29, 2026 23:08
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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-wasm for MSI wrapper generation in workloads.csproj.
  • Make Windows_Workloads reuse artifacts from Browser_CoreCLR_Shortstack so the pack is available during pass-2 workload MSI generation.
  • Add docs/VMR-Workload-Packs.md documenting 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.

Comment thread docs/VMR-Workload-Packs.md Resolved
@marcpopMSFT
marcpopMSFT requested a review from akoeplinger July 29, 2026 23:18
@marcpopMSFT

Copy link
Copy Markdown
Member Author

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.

@akoeplinger
akoeplinger merged commit ca450ce into main Jul 30, 2026
12 checks passed
@akoeplinger
akoeplinger deleted the fix-browser-wasm-msi-pack-main branch July 30, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants