Skip to content

[release/11.0] [wasm] Keep WBT on the pinned SDK - #137024

Closed
pavelsavara wants to merge 2 commits into
dotnet:release/11.0from
pavelsavara:wasm-rtm-restore-net11
Closed

pavelsavara wants to merge 2 commits into
dotnet:release/11.0from
pavelsavara:wasm-rtm-restore-net11

Conversation

@pavelsavara

@pavelsavara pavelsavara commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Use the SDK pinned in global.json only for Wasm.Build.Tests (WBT). The override is in Wasm.Build.Tests.csproj, after shared version evaluation and before workload provisioning targets are imported.

The flowed RTM SDK requests stable 11.0.0 ILLink and ASP.NET packages that the investigated CI feeds cannot restore. The pinned 11.0.100-rc.2.26504.105 SDK uses publicly restorable prerelease dependencies.

This supersedes the first commit's shared-property change. The net PR changes only the WBT project and its README; eng/Versions.props is identical to the release base.

Impact and coverage tradeoff

  • Both WBT workload and no-workload configurations use the pinned SDK by default.
  • Shared manifest production, non-WBT library/mobile/WASI workload provisioning, and the repository bootstrap SDK selection are unchanged. Shared build evaluation still selects the RTM test SDK.
  • No shipping runtime code, dependency pins, shared SDK files, or manifest package IDs change.
  • This is a temporary SDK-compatibility workaround, not full validation against the newest SDK and its default dependencies.

Which components are exercised?

Component Version/source used by WBT
Child-build .NET SDK, MSBuild, compiler, SDK targets/tasks, SDK-provided Blazor templates Pinned RC2 SDK, not newer RTM SDK
Microsoft.NET.ILLink.Tasks SDK-default RC2 package; not the linker built from this checkout unless a test explicitly overrides it
ASP.NET/Blazor packages, including Internal.Assets, Components.WebAssembly, Components.Gateway and JSInterop.WebAssembly SDK/template-selected RC2 packages, unless explicitly overridden
Current-framework runtime packs and their managed/native runtime and loader assets Branch-built packs where the existing WBT configuration selects them: local workload manifests/packs for Mono; explicit current targeting/runtime-pack selection for CoreCLR
Microsoft.NET.Sdk.WebAssembly.Pack and tasks supplied by that pack Branch-built version where selected by the local workload/current-pack overrides
Runtime-owned browser templates Built template package installed by the existing WBT setup; distinct from SDK-provided Blazor templates
Workload manifests Branch-built Mono toolchain manifests; Emscripten manifest/toolchain dependencies remain at the branch's existing dependency versions
Previous-framework compatibility cases or tests with explicit package versions Their existing requested versions; this PR does not globally replace them with current packs

This is deliberately not a claim that installing a local workload makes every dependency in every generated application in-tree. Resolution remains component/test-specific. Latest CoreCLR Blazor restore assets show Microsoft.NET.Sdk.WebAssembly.Pack/11.0.0-dev alongside RC2 ILLink, Internal.Assets, Components.WebAssembly, Components.Gateway and JSInterop.WebAssembly. Prior child-binlog inspection also verified actual CoreCLR selection (UseMonoRuntime=false) in a basic-app case.

MSBuild properties and evaluation order

  1. _GlobalJsonSdkVersion is the full SDK version extracted from global.json: 11.0.100-rc.2.26504.105.
  2. Shared eng/Versions.props still computes its original defaults using _DotnetSdkVersion (the Emscripten manifest transport version), SdkMajorVersion, SdkBandVersion, and SdkPreReleaseLabel. None of that shared logic is changed.
  3. WBT then assigns SdkVersionForWorkloadTesting=$(_GlobalJsonSdkVersion). Provisioning uses this full version for SDK installation and version-dependent stamps in dotnet-none/dotnet-latest. A command-line global property still takes precedence.
  4. SdkBandVersionForWorkload_FromRuntimeVersions has already been evaluated as 11.0.100 from the release branch's RTM inputs. MSBuild does not retroactively recompute it when WBT changes the SDK property.
  5. VersionBandForManifestPackages takes that existing value and resolves IDs such as Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100. Manifest package producers outside WBT keep their original behavior.
  6. SdkBandVersionForWorkload_ComputedFromInstaller, and then VersionBandForSdkManifestsDir, are computed from the installed SDK. RC2 therefore receives manifests under sdk-manifests/11.0.100-rc.2, while package lookup remains on 11.0.100.

The package feature band and SDK manifest-directory band intentionally differ. This relies on the existing RTM state of release/11.0; it is not a general redesign of SDK/manifest selection.

Validation

The final WBT-local implementation was validated on Windows/Chrome using the same-commit Debug runtime artifacts from the earlier successful CoreCLR and Mono builds:

  • WBT evaluation: RC2 SDK plus stable 11.0.100 manifest package band.
  • Non-WBT Build.proj evaluation: original RTM SDK selection unchanged.
  • Explicit command-line SDK override: preserved.
  • Deleted and freshly recreated the constructed SDKs. CoreCLR no-workload SDK and Mono workload SDK construction both passed, with zero warnings/errors, and no command-line SDK-version or manifest-band overrides.
  • Rebuilt WBT and ran Wasm.Build.Tests.AppSettingsTests plus Wasm.Build.Tests.Blazor.AppsettingsTests, with serial class execution: 9/9 CoreCLR no-workload and 9/9 Mono workload passed; zero failures/skips and zero build warnings/errors.
  • git diff --check passed; shared eng/Versions.props matches the release base exactly.

Commands below were run separately in the CoreCLR and Mono validation worktrees, substituting CoreCLR/false and Mono/true for <Flavor>/<Workloads>, respectively. SDK construction and the test build both passed for each pair.

.\dotnet.cmd build -bl /p:TargetOS=browser /p:TargetArchitecture=wasm /p:RuntimeFlavor=<Flavor> /p:Configuration=Debug /p:EnableHotReloadInRuntimeConfigDevFile=false /p:UseSharedCompilation=false /t:InstallWorkloadUsingArtifacts .\src\mono\wasm\Wasm.Build.Tests
.\dotnet.cmd build -bl /p:TargetOS=browser /p:TargetArchitecture=wasm /p:RuntimeFlavor=<Flavor> /p:Configuration=Debug /p:EnableHotReloadInRuntimeConfigDevFile=false /p:UseSharedCompilation=false /p:InstallWorkloadForTesting=false /p:TestUsingWorkloads=<Workloads> /p:InstallChromeForTests=false /p:Scenario=WasmTestOnChrome '/p:XUnitClassName=Wasm.Build.Tests.AppSettingsTests -class Wasm.Build.Tests.Blazor.AppsettingsTests -parallel none' /t:Test .\src\mono\wasm\Wasm.Build.Tests

Tests used NuGetAudit=false, UseSharedCompilation=false, MSBUILDDISABLENODEREUSE=1, and fresh isolated CLI homes. CoreCLR used the shared Emscripten toolchain. The shared wasm-tools manifest also needs the CoreCLR runtime package, so the Mono local feed includes the same-commit CoreCLR package; its 241 uncompressed entries match the final CoreCLR build.

No new full runtime build was needed for the WBT-local revision. The earlier full builds passed with existing package-audit warnings. An earlier parallel Mono run of the superseded implementation had a browser-startup timeout; the final local implementation's two runs above had no failures. The full CI, previous-framework, AOT, multithreaded, WASI, and other mobile matrices were not run locally.

Resolves #136326

Note

This change and description were prepared with GitHub Copilot assistance. The reported builds and tests were executed locally.

Keep workload tests on the SDK pinned in global.json while generating and
resolving manifest packages with stable feature-band IDs. This avoids
requests for unpublished stable .NET 11 dependencies after RTM manifest
transport updates.

Co-authored-by: Copilot <[email protected]>
@pavelsavara pavelsavara self-assigned this Nov 5, 2026
@pavelsavara pavelsavara added this to the 11.0.0 milestone Nov 5, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Restore shared SDK selection and manifest-band computation to the release
baseline. Override the provisioned SDK only in Wasm.Build.Tests after shared
version evaluation and before workload provisioning targets are imported.

Document which SDK-default dependencies remain on the pinned version.

Co-authored-by: Copilot <[email protected]>
@pavelsavara pavelsavara changed the title [release/11.0] [wasm] Use pinned SDK for workload build tests [release/11.0] [wasm] Keep WBT on the pinned SDK Nov 6, 2026
@pavelsavara pavelsavara closed this Nov 6, 2026
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.

1 participant