Thanks for reaching out.
The error you’re seeing:
“To build this project, the following workloads must be installed: wasi‑experimental”
typically occurs because the .NET MAUI workloads or SDK manifests are out of sync or partially corrupted. Even if your project doesn’t target WebAssembly or WASI, the build system may incorrectly think this workload is required.
Here are steps to resolve the issue
- Clean and restore your project (no admin rights needed):
dotnet clean
dotnet restore
dotnet workload restore
dotnet workload repair
The dotnet workload repair command ensures all installed workloads are properly registered.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-repair
- Check installed workloads:
dotnet workload list
This will show which workloads are currently installed.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-list
- Simplify your project path: Make sure your project folder path doesn’t contain special characters (e.g.,
@,(,)), as these can cause build or workload resolution issues. - If the issue persists, you may need admin assistance to:
dotnet workload install maui
dotnet workload update
Admin rights are required if workloads need to be installed or updated system-wide.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-install
- Admins can also repair or reinstall the .NET SDK or workloads if necessary.
Following these steps should restore proper workload registration and allow your MAUI project to build successfully.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.