maui.net-8.0mac-catalyst

Visual Studio Mac Os (Net Maui) "Workload ID maui is not recognized"


I am trying to run my Net Maui application developed in VS for windows on Mac as well (Maccatalyst). I get errors in VS for Mac when restoring packages for the project saying:

error NETSDK1139: The target identifier maccatalyst was not recognized.

In terminal when I try to install the Net Maui workload by command:

sudo dotnet workload install maui --source https://api.nuget.org/v3/index.json

I get:

Worload ID maui is not recognized

I have .Net 8.0.101 installed at /usr/local/Cellar/dotnet/8.0.1/libexec/sdk installed with homewbrew from command line.

Pointed Visual studio for MAC to this location and finds the Sdks. MAC OS version is Sonoma 14.3 Xcode version is 15.2

Any ideas please?


Solution

  • uninstalling the homebrew version of dotnet fixed this for me, I had to use the dotnet bundled with visual studio for mac.