Skip to content

Retire current Mono workload packs and align SDK consumers - #10989

Merged
akoeplinger merged 1 commit into
mainfrom
akoeplinger-vmr-retirement-on-codeflow
Nov 14, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
akoeplinger-vmr-retirement-on-codeflow

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Import the reviewed runtime Mono-pack retirement changes, including browser NativeAOT import isolation and WASI defaults that preserve explicit runtime selections.
  • Align current SDK workload manifests, bundled runtime-pack metadata and VS insertion with CoreCLR/NativeAOT producers, while preserving downlevel Mono support.
  • Default WebAssembly runtime selection after target-framework inference; reject unsupported explicit Mono requests through the existing NETSDK1242 diagnostic.
  • Update VMR browser/WASI short-stack orchestration and artifact dependencies, and retain the existing WASM cDAC component guard.

Companion runtime PR: dotnet/runtime#137518

Validation

  • Built SDK tasks, current/downlevel workload manifests and shared runtime packages. Rebuilt affected browser/WASI SDK packages and verified packaged files against source.
  • 205 integration assertions across 62 actual MSBuild invocations, including framework-reference resolution and generated workload imports.
  • 84 Mono diagnostic cases, including explicit project/global selections and fresh packaged WASI SDK imports.
  • 91 WebAssembly/Blazor runtime-default, downlevel runtime-pack and multi-targeting checks.
  • Additional runtime graph, VMR orchestration and local pipeline graph evaluations completed during integration.

Full VMR/redist builds, native application compile/link/publish/run, workload/VS installation and hosted CI have not been run locally. MSBuild evaluation and framework-reference checks are not claimed as native publish validation.

Note

Prepared with GitHub Copilot.

@akoeplinger
akoeplinger requested review from a team as code owners November 13, 2026 21:00
@azure-pipelines

This comment was marked as outdated.

@dotnet-policy-service
dotnet-policy-service Bot requested review from a team November 13, 2026 21:01
@akoeplinger
akoeplinger added this pull request to stack #10990 November 13, 2026 21:01
@akoeplinger

This comment was marked as outdated.

@azure-pipelines

This comment was marked as outdated.

Base automatically changed from darc-main-175291aa-e8db-433b-a85e-a65a3521a2c7 to main November 13, 2026 22:37
Import the reviewed runtime changes and align SDK workload manifests, runtime-pack defaults, VS insertion, and VMR orchestration. Preserve downlevel Mono support and reject unsupported current Mono requests.

Co-authored-by: Copilot App <[email protected]>
@akoeplinger
akoeplinger force-pushed the akoeplinger-vmr-retirement-on-codeflow branch from 39f449b to feef309 Compare November 13, 2026 22:37
Copilot AI balanced review requested due to automatic review settings November 13, 2026 22:37

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.

🟡 Changes recommended

Installed, non-single-file CoreCLR WASI app bundles fail during relinking because the SDK package omits required native headers and the default lookup resolves outside the versioned SDK directory.

1 open issue
What changed in this PR

Aligns .NET 12 runtime producers and SDK consumers after runtime codeflow #10967, retiring current Mono workload packs while preserving downlevel Mono support.

Changes:

  • Replaces current Mono pack registrations and bundled metadata with CoreCLR/NativeAOT equivalents.
  • Defers WebAssembly runtime defaults until framework inference, expands NETSDK1242 validation, and separates CoreCLR from NativeAOT imports.
  • Consolidates build subsets, CI jobs, artifact dependencies, and workload documentation.
File Description
test/​wasm-dependencies.proj Downloads the CoreCLR browser runtime pack.
src/​sdk/​src/​Workloads/​VSInsertion/​workloads.csproj Replaces retired packs in VS insertion.
src/​sdk/​src/​Workloads/​Manifests/​Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/​WorkloadManifest.targets.in Aligns current workload imports and runtime selection.
src/​sdk/​src/​Workloads/​Manifests/​Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/​WorkloadManifest.json.in Replaces current Mono workload pack definitions.
src/​sdk/​src/​WasmSdk/​Sdk/​Sdk.props Removes the early Mono default.
src/​sdk/​src/​Tasks/​Microsoft.NET.Build.Tasks/​targets/​Microsoft.NET.TargetFrameworkInference.targets Rejects unsupported explicit Mono selections.
src/​sdk/​src/​Tasks/​Microsoft.NET.Build.Tasks/​targets/​Microsoft.NET.Sdk.BeforeCommon.targets Sets WebAssembly defaults after framework inference.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.zh-Hant.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.zh-Hans.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.tr.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.ru.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.pt-BR.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.pl.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.ko.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.ja.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.it.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.fr.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.es.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.de.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​xlf/​Strings.cs.xlf Updates NETSDK1242; marks translation pending.
src/​sdk/​src/​Tasks/​Common/​Resources/​Strings.resx Generalizes NETSDK1242 to unsupported target frameworks.
src/​sdk/​src/​Layout/​redist/​targets/​GenerateBundledVersions.targets Removes current Mono metadata and retired architectures.
src/​runtime/​src/​tasks/​tasks.proj Excludes the Mono AOT compiler task.
src/​runtime/​src/​mono/​wasi/​build/​WasiApp.targets Uses CoreCLR flavor; removes Mono substitutions.
src/​runtime/​src/​mono/​wasi/​build/​WasiApp.CoreCLR.targets Adds packaged props lookup; preserves explicit runtime selection.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/​WorkloadManifest.Wasi.targets.in Enables the current WASI workload.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/​WorkloadManifest.targets.in Retires current Mono imports and updates runtime metadata.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/​WorkloadManifest.json.in Removes retired Mono packs from runtime manifests.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk/​Sdk/​Sdk.targets Imports CoreCLR targets only outside NativeAOT.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk/​Sdk/​Sdk.props Defaults WASI to CoreCLR without overriding explicit selection.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk/​Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk.pkgproj Packages CoreCLR targets and P/Invoke module props.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Runtime.WebAssembly.Sdk/​Sdk/​Sdk.targets Excludes CoreCLR relinking imports for NativeAOT.
src/​runtime/​src/​mono/​nuget/​Microsoft.NET.Runtime.LibraryBuilder.Sdk/​Sdk/​Sdk.props Switches LibraryBuilder away from Mono.
src/​runtime/​src/​coreclr/​.nuget/​coreclr-packages.proj Produces shared workload packages from CoreCLR builds.
src/​runtime/​eng/​testing/​tests.ioslike.targets Removes Mono LLVM test arguments.
src/​runtime/​eng/​targetingpacks.targets Removes Android x86 from local pack metadata.
src/​runtime/​eng/​Subsets.props Removes Mono subsets and consolidates packaging selection.
src/​runtime/​eng/​Signing.props Updates artifact publication for remaining runtime producers.
src/​runtime/​eng/​pipelines/​runtime.yml Removes Mono jobs and expands CoreCLR WASI coverage.
src/​runtime/​eng/​pipelines/​performance/​templates/​perf-wasm-prepare-artifacts-steps.yml Defaults to CoreCLR; removes Mono artifact exchange.
src/​runtime/​eng/​pipelines/​performance/​templates/​perf-wasm-build-jobs.yml Removes the Mono WebAssembly performance build.
src/​runtime/​eng/​pipelines/​performance/​perf-build.yml Removes the Mono WebAssembly build option.
src/​runtime/​eng/​pipelines/​libraries/​helix-queues-setup.yml Removes Android x86 queue selection.
src/​runtime/​eng/​pipelines/​common/​templates/​wasm-build-only.yml Deletes the Mono build-only template.
src/​runtime/​eng/​pipelines/​common/​platform-matrix.yml Removes the Android x86 platform entry.
src/​runtime/​eng/​build.sh Removes the Mono primary-runtime command option.
src/​runtime/​eng/​build.ps1 Removes the Mono primary-runtime command option.
src/​runtime/​docs/​workflow/​testing/​libraries/​testing-apple.md Removes Mono AOT-LLVM testing instructions.
src/​runtime/​docs/​workflow/​testing/​libraries/​testing-android.md Removes Mono AOT-LLVM testing instructions.
src/​runtime/​Directory.Build.props Removes Mono manifest and cross-AOT build defaults.
repo-projects/​runtime.proj Requests all supported packs; retains the cDAC guard.
repo-projects/​Directory.Build.targets Removes current Mono pack version forwarding.
eng/​RuntimeIdentifier.props Removes Mono LLVM short-stack classification.
eng/​pipelines/​templates/​stages/​vmr-verticals.yml Consolidates short-stack jobs and artifact dependencies.
docs/​VMR-Workload-Packs.md Documents current pack registration and producer jobs.

Review effort: Balanced

@akoeplinger
akoeplinger enabled stacked auto-merge (squash) November 14, 2026 00:28
akoeplinger added a commit to dotnet/runtime that referenced this pull request Nov 14, 2026
<!-- -->
## Summary

Retire Mono from the top-level runtime product build and CI
orchestration in favor of CoreCLR/NativeAOT:

- Remove Mono subsets, capability predicates, cross-AOT/LLVM scheduling,
obsolete `usemonoruntime` switches, and Mono CI/performance producers.
- Move surviving mobile/WASI SDK and shared tooling producers into
`clr.packages`, preserving host, diagnostics, PGO, and shared ILLink
outputs.
- Remove Mono runtime/cross-AOT/compiler-task demands from the current
internal workload manifest; retain older-TFM manifests and the shared
MonoTargets SDK required by surviving runtime-config consumers.
- Retire Android x86 metadata/queue entries. Preserve other supported
CoreCLR/NativeAOT RIDs.
- Package the WASI CoreCLR targets and required PInvoke module props;
keep browser/WASI CoreCLR relinking separate from NativeAOT publishing.
WASI runtime-selection setters preserve explicit values for SDK
validation.

Shipping workload manifests, bundled runtime metadata, VS insertion, and
root VMR orchestration require the coordinated changes in
[dotnet/dotnet#10989](dotnet/dotnet#10989).
Runtime-produced manifest packages are excluded from publication by
`eng/Publishing.props`.

Legacy standalone Mono sources, samples, functional tests, and unrelated
mobile build-target/README cleanup are intentionally left for later.

## Validation

- Passed 101 actual MSBuild project/property evaluations covering
default/all-packs desktop, mobile, browser, WASI, CodeQL configurations,
source-only selection, pass2, shared producers, and retired Mono
selectors.
- Parsed five pipeline YAML files and passed three evaluations using
actual CI job arguments.
- Rebuilt browser and WASI SDK packages. Verified fresh extracted
package contents/imports, NativeAOT/CoreCLR import separation,
preservation of explicit WASI runtime selections, and actual ReadyToRun
PInvoke-module task execution for both globalization modes.
- Bash syntax/help, PowerShell parsing/help, and `git diff --check`
passed.

No full cross-platform product build, native WASI link/run, mobile
execution, NativeAOT publish/run, offline source build, or hosted VMR/CI
execution was performed. Local package builds used
`EnableHotReloadInRuntimeConfigDevFile=false` to avoid an unrelated
Debug WasmAppHost static-assets mismatch.

> [!NOTE]
> This pull request was prepared with GitHub Copilot.

Co-authored-by: Copilot App <[email protected]>
@akoeplinger
akoeplinger merged commit fafc397 into main Nov 14, 2026
12 checks passed
@akoeplinger
akoeplinger deleted the akoeplinger-vmr-retirement-on-codeflow branch November 14, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants