.netmacosxamarinmauiworkload

Trying to install Maui on Mac: How can I solve the .Net workload version 8.0.401-baseline.24412.2 not found problem?


I'm trying install the maui workload along with the .net workloads on Mac using the terminal, and I keep getting this problem of Unhandled exception: System.IO.FileNotFoundException: Workload version 8.0.401-baseline.24412.2 was not found.

after installing the .net SDK and workloads I got a warning of : Workload garbage collection failed with error: Workload version 8.0.401-baseline.24412.2 was not found..

tried cleaning, repairing, updating, clearing the SDK path, uninstalling, and installing again but the problem persists and prevents me from creating a new project. Any help is much appreciated.


Solution

  • I fixed the problem by downloading .net 9 preview version of the .net sdk , uninstalled the 8.0.402 version and installed the new one.