Wallace B. McClure
Wallace B. McClure

Reputation: 1545

Workload must be installed, but is already installed

I'm running the most recent version of VS 2022 17.7.6 and .net 7. I have a .net maui app based on .net 7. I am getting an error when I try to build and debug my app in and run it in the android emulator. "To build this project, the following workloads must be installed: wasm-tools" Ok, that is strange. I've done a dotnet workload install wasm-tools and they are showing as installed in my system. I can't get the app to compile. Any suggestions on getting around this error message and getting my app to compile?

TIA

Upvotes: 3

Views: 1441

Answers (2)

Rajendran
Rajendran

Reputation: 56

When try to reinstall through the command prompt. The installation source was changed like below. This resolved the same issue which I faced.

workload list by default

After install workload through command prompt

Upvotes: 0

Jessie Zhang -MSFT
Jessie Zhang -MSFT

Reputation: 13861

You can try the following steps:

  1. Run dotnet workload install wasm-tools command in CLI/Package Manage Console.

enter image description here

OR Install by Modifying the VS Installer.

enter image description here

  1. If the problem persists, try to run dotnet workload repair command and then restart your PC.

For more information, please check: dotnet workload command and .NET WebAssembly build tools.

Upvotes: 0

Related Questions