[wasm] error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools

Open
#109,653 5 comments 0 reactions 1 assignee View on GitHub

@maraf is already working on this.

Since Nov 12, 2024.

Assessment

This issue has not been assessed yet.

Description

arch-wasm area-Infrastructure-mono in-pr Known Build Error os-browser os-wasi

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1064009
Build error leg or test failing: wasm build

Error Message

{
  "ErrorMessage" : "error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
[] /root/helix/work/workitem/e/dotnet-none/sdk/9.0.100-rtm.24512.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools [/root/helix/work/workitem/e/wbt artifacts/MemoryTests_mcalfhct_0vs/App/WasmBasicTestApp.csproj]
[] /root/helix/work/workitem/e/dotnet-none/sdk/9.0.100-rtm.24512.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore [/root/helix/work/workitem/e/wbt artifacts/MemoryTests_mcalfhct_0vs/App/WasmBasicTestApp.csproj]
Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1064009
Error message validated: [error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/11/2025 1:58:51 AM UTC

Report
Build Definition Test Pull Request
873817 dotnet/runtime Wasm.Build.Tests.NonWasmTemplateBuildTests.NonWasmConsoleBuild_WithoutWorkload dotnet/runtime#109232
871880 dotnet/runtime Wasm.Build.Tests.Blazor.WorkloadRequiredTests.WorkloadNotRequiredForInvariantGlobalization dotnet/runtime#109069
871580 dotnet/runtime NoWebcil-ST-Wasm.Build.Tests.WorkItemExecution dotnet/runtime#109895
870092 dotnet/runtime NoWorkload-ST-Wasm.Build.Tests.WorkItemExecution dotnet/runtime#109836
869678 dotnet/runtime Wasm.Build.Tests.Blazor.BuildPublishTests.DefaultTemplate_WithoutWorkload dotnet/runtime#109069
868168 dotnet/runtime Wasm.Build.Tests.Blazor.BuildPublishTests.DefaultTemplate_WithoutWorkload dotnet/runtime#109069
867435 dotnet/runtime NoWorkload-NoWebcil-ST-Wasm.Build.Tests.WorkItemExecution dotnet/runtime#109723
867147 dotnet/runtime Wasm.Build.Tests.NonWasmTemplateBuildTests.NonWasmConsoleBuild_WithoutWorkload dotnet/runtime#109707
866011 dotnet/runtime Wasm.Build.Tests.NonWasmTemplateBuildTests.NonWasmConsoleBuild_WithoutWorkload dotnet/runtime#109221
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 5 9
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.