Skip to content

[wasm][coreclr] Enable webcil V1 for CoreCLR wasm builds#126876

Merged
radekdoulik merged 1 commit intodotnet:mainfrom
radekdoulik:fix/webcil-v1-support
Apr 14, 2026
Merged

[wasm][coreclr] Enable webcil V1 for CoreCLR wasm builds#126876
radekdoulik merged 1 commit intodotnet:mainfrom
radekdoulik:fix/webcil-v1-support

Conversation

@radekdoulik
Copy link
Copy Markdown
Member

@radekdoulik radekdoulik commented Apr 14, 2026

Note

PR description co-authored with Copilot.

Building on #126709 which added V1 webcil support infrastructure, this enables V1 webcil output for CoreCLR wasm builds.

It addresses remaining feedback from #126709

Changes

  • ConvertDllsToWebCil.cs: Add WebcilVersion property to the MSBuild task, plumb it to the WebcilConverter
  • Microsoft.NET.Sdk.WebAssembly.Browser.targets: Add _WasmWebcilVersion property defaults to V1 when RuntimeFlavor=CoreCLR, V0 otherwise. Users can override via WasmWebcilVersion.cascade

Add WebcilVersion property to ConvertDllsToWebcil MSBuild task and
plumb it through to the WebcilConverter. The SDK targets default to V1
when RuntimeFlavor is CoreCLR, V0 otherwise. Users can override via
the WasmWebcilVersion property.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@radekdoulik radekdoulik requested a review from lewing as a code owner April 14, 2026 14:08
Copilot AI review requested due to automatic review settings April 14, 2026 14:08
@radekdoulik radekdoulik added this to the Future milestone Apr 14, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@radekdoulik radekdoulik changed the title Enable webcil V1 for CoreCLR wasm builds [wasm][coreclr] Enable webcil V1 for CoreCLR wasm builds Apr 14, 2026
Copy link
Copy Markdown
Member

@pavelsavara pavelsavara left a comment

Choose a reason for hiding this comment

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

thanks

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

Note

Copilot was unable to run its full agentic suite in this review.

Enables Webcil V1 output by default for CoreCLR WebAssembly builds by plumbing a Webcil version setting from MSBuild into the Webcil conversion task.

Changes:

  • Added a WebcilVersion parameter to the ConvertDllsToWebcil MSBuild task and forwarded it to WebcilConverter.
  • Introduced _WasmWebcilVersion MSBuild property logic to default to V1 for RuntimeFlavor=CoreCLR and V0 otherwise.
  • Passed the resolved Webcil version into conversion during both build and publish pipelines.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/ConvertDllsToWebCil.cs Adds MSBuild task parameter and forwards it to the Webcil conversion API.
src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets Computes default Webcil version per runtime flavor and supplies it to conversion tasks.

@radekdoulik radekdoulik enabled auto-merge (squash) April 14, 2026 15:03
@radekdoulik radekdoulik merged commit 4f7595d into dotnet:main Apr 14, 2026
66 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants