Error NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation

Kim Strasser 1,321 Reputation points
2023-12-12T13:52:10.9933333+00:00

I get the following error in my iOS project in Visual Studio Code:

/usr/local/share/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: Microsoft.NETCore.App.Runtime.AOT.Cross.net6.ios-arm Microsoft.NETCore.App.Runtime.AOT.Cross.net6.ios-arm64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-arm64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-x64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-x86 [/Users/name/TestVSCodeMono/MyGame/MyGame/MyGame.csproj]

/usr/local/share/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: You may need to build the project on another operating system or architecture, or update the .NET SDK.

How can I install the missing workloads?

I use Visual Studio Code Version: 1.85.0 (Universal) and macOS Sonoma 14.2.

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.