You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ACTUAL:
Build the WASM project, it will meet an error:
C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\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 wasm-tools-net9
To install these workloads, run the following command: dotnet workload restore
NOTE:
This issue can also repro in .NET 10 wasm project when check AOT option
EXPECTED:
wasm-tools workload should still be installed after installing 10.0 Preview 1 SDK
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
maitan11
changed the title
After installing SDK 10.0 Preview 1, wasm-tools can be displayed on dotnet workload list but it doesn't work
[WebToolsE2E]After installing SDK 10.0 Preview 1, wasm-tools can be displayed on dotnet workload list but it doesn't work
Feb 10, 2025
To clarify, are you running dotnet workload install/update after installing the 10 sdk? If not, it's been the case since workloads were created that workloads installed into the 9 SDK aren't recognized by later sdks that get installed.
I have installed wasm-tools with the command "dotnet workload install wasm-tools" before installing SDK 10.0, and it works fine. But after I install SDK 10.0, I can see that wasm-tools has been installed with the command "dotnet workload list", but it doesn't work,
After I manually installed wasm-tools again using the command "dotnet workload wasm-tools", .net10.0 project worked. For .net9.0 project, I need to run "dotnet workload install wasm-tools-net9". Is this expected?
INSTALL STEPS:
REPRO STEPS:
Open cmd, then run dotnet workload install wasm-tools to install wasm-tools, and then open a new cmd and run: dotnet workload list
create a 9.0 WASM app by cmd: dotnet new blazorwasm
Change csproj file:
<RunAOTCompilation>True</RunAOTCompilation>
Build and run successfully
Install SDK 10.0.100-preview.1.25103.13 and apply feed and open a ne cmd and run: dotnet workload list
Create a 9.0 WASM app by cmd: dotnet new blazorwasm -f net9.0
Change csproj file:
<RunAOTCompilation>True</RunAOTCompilation>
ACTUAL:
![Image](https://private-user-images.githubusercontent.com/158537841/411469823-7ffc9780-5441-4b0f-a9c4-04acd0c68835.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTQ4MTcsIm5iZiI6MTczOTU1NDUxNywicGF0aCI6Ii8xNTg1Mzc4NDEvNDExNDY5ODIzLTdmZmM5NzgwLTU0NDEtNGIwZi1hOWM0LTA0YWNkMGM2ODgzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxNzM1MTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZDA0NGJjM2NhZmYzZjM1OWExNGY2YjIzMjk0ZmFlZjdkYjgwNWJlODk0MmY1MzJlMTA1N2FmZDE0M2ZiYzhmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dqh9DO6OANuIh12MZYgaw7XI0uHaIZc1PjRMXo8ulI0)
Build the WASM project, it will meet an error:
C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\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 wasm-tools-net9
To install these workloads, run the following command: dotnet workload restore
NOTE:
EXPECTED:
wasm-tools workload should still be installed after installing 10.0 Preview 1 SDK
Dotnet info:
.NET SDK:
Version: 10.0.100-preview.1.25103.13
Commit: 9035d02
Workload version: 10.0.100-manifests.bf5105ba
MSBuild version: 17.14.0-preview-25073-02+291a81087
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.1.25103.13\
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 10.0.0-preview.1.25080.5
Architecture: x64
Commit: b98cabca12
.NET SDKs installed:
9.0.200 [C:\Program Files\dotnet\sdk]
10.0.100-preview.1.25103.13 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-preview.1.25103.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-preview.1.25080.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.1.25080.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
The text was updated successfully, but these errors were encountered: