Skip to content

[wasm][coreclr] Add scripts to generate the helpers#124006

Merged
radekdoulik merged 2 commits intodotnet:mainfrom
radekdoulik:clr-wasm-generator-scripts
Feb 6, 2026
Merged

[wasm][coreclr] Add scripts to generate the helpers#124006
radekdoulik merged 2 commits intodotnet:mainfrom
radekdoulik:clr-wasm-generator-scripts

Conversation

@radekdoulik
Copy link
Copy Markdown
Member

No description provided.

@radekdoulik radekdoulik added this to the Future milestone Feb 4, 2026
Copilot AI review requested due to automatic review settings February 4, 2026 15:11
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@radekdoulik
Copy link
Copy Markdown
Member Author

@AaronRobinsonMSFT please try the .cmd version of the script. I tested the bash version and let copilot create the .cmd version.

I also remembered that the testhost folder has all the assemblies, so the script doesn't need to build any runtime tests after all.

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

This PR adds shell scripts to generate CoreCLR call helpers for WebAssembly. The scripts automate the process of running the ManagedToNativeGenerator task to produce C++ helper files needed for CoreCLR on WASM.

Changes:

  • Added shell scripts (generate-coreclr-helpers.sh and generate-coreclr-helpers.cmd) to automate CoreCLR helper generation for WASM
  • Modified the assembly scanning glob pattern in WasmAppBuilder.csproj from recursive to non-recursive
  • Updated documentation to reference the new generator scripts

Reviewed changes

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

File Description
src/tasks/WasmAppBuilder/generate-coreclr-helpers.sh Bash script for Unix/macOS to generate CoreCLR WASM helpers with configurable paths and build configuration
src/tasks/WasmAppBuilder/generate-coreclr-helpers.cmd Windows batch script equivalent with similar functionality and error handling
src/tasks/WasmAppBuilder/WasmAppBuilder.csproj Changed assembly glob pattern from recursive (**/*.dll) to non-recursive (*.dll)
docs/workflow/wasm-documentation.md Added documentation section explaining how to use the generator scripts

Comment thread src/tasks/WasmAppBuilder/WasmAppBuilder.csproj
Comment thread src/tasks/WasmAppBuilder/generate-coreclr-helpers.sh Outdated
Comment thread src/tasks/WasmAppBuilder/generate-coreclr-helpers.cmd Outdated
Copy link
Copy Markdown
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

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

:shipit:

@radekdoulik radekdoulik merged commit 265d056 into dotnet:main Feb 6, 2026
36 checks passed
lewing pushed a commit to lewing/runtime that referenced this pull request Feb 9, 2026
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants