Reputation: 1545
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
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.
Upvotes: 0
Reputation: 13861
You can try the following steps:
dotnet workload install wasm-tools
command in CLI/Package Manage Console.OR Install by Modifying the VS Installer.
dotnet workload repair
command and then restart your PC.For more information, please check: dotnet workload command and .NET WebAssembly build tools.
Upvotes: 0