If you are facing issues on macOS, with the retiring Visual Studio for Mac launching your .NET MAUI app, or restoring the packages on it:
error NETSDK1139: The target platform identifier android was not recognized.
error NETSDK1139: The target platform identifier iOS was not recognized.
error NETSDK1139: The target platform identifier MacCatalyst was not recognized.
This error can be also recognized from this toolbar:


Ensure whether you have the correct .NET Workloads installed with the terminal command:
sudo dotnet workload install maui
Check whether you have the latest .NET SDK installed on your machine, from the Microsoft’s official website.
Ensure you have enabled “Use the .NET 8 SDK if installed” in the Visual Studio for Mac’s preferences.


Leave a Reply