Esra
Esra

Reputation: 31

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.

Upvotes: 1

Views: 932

Answers (2)

Esra
Esra

Reputation: 31

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.

Upvotes: 1

Shuowen He-MSFT
Shuowen He-MSFT

Reputation: 682

I found this issue in dotnet GitHub ([NETSDKE2E]With 8.0.400 SDK zip installed, warning and Error).

This is a confirmed bug: Currently, both .NET 8.0.400 and 8.0.401 will show Warning: "Workload garbage collection failed with error: Workload version 8.0.400-baseline.24372.6 was not found...".

Member stated in the issue that this issue was fixed in SDK 8.0.402, and I checked the .NET8.0 version list and did not find 8.0.402, so I judged that this version has not been released yet. You can post a comment in this issue to ask for the specific release date.

Upvotes: 2

Related Questions