Bhav
Bhav

Reputation: 2207

Error building .NET MAUI apps in Visual Studio for Mac Preview

I've downloaded the latest version of Visual Studio for Mac Preview and attempting to create a .NET MAUI app. I'm not able to build and run the solution as "The solution requires .NET SDK Workloads that are not currently installed."

enter image description here

If I click on Install, this shows but it doesn't appear to do anything.

enter image description here

If I go into the terminal and enter dotnet workload list that outputs no workloads installed. If I run sudo dotnet workload install that outputs zsh: segmentation fault sudo dotnet workload install.

What do I need to do in order to be able to run MAUI apps on my Mac as I was looking forward to developing them.

Upvotes: 2

Views: 796

Answers (1)

Bhav
Bhav

Reputation: 2207

I managed to resolve my issue by doing the following:

I made a global.json with the following contents:

{ "sdk": { "version": "6.0.400", "rollForward": "latestFeature" } }

I installed the legacy Xamarin iOS SDK option in the Visual Studio for Mac installer.

Upvotes: -1

Related Questions