Unable to run MAUI project on Visual Studio Mac

151 views Asked by At

I have a MAUI project that runs on a Windows Device fine on a windows machine in Visual Studio 2022.

Having great difficulty getting it to communicate with my Mac though, so have pulled the code onto it to troubleshoot.

When I try and run the project, I get these messages.

/usr/local/share/dotnet/sdk/7.0.311/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier android was not recognized. /usr/local/share/dotnet/sdk/7.0.311/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier ios was not recognized. /usr/local/share/dotnet/sdk/7.0.311/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier maccatalyst was not recognized.

I have run dotnet worload install maui and dotnet workload install android and dotnet workload install ios but still get the error.

Any ideas?

0

There are 0 answers