Andr谩s T贸th‘s professional blog
banditoth.net

Hey there 馃憢, I’m banditoth a .NET MAUI developer from Hungary.
I write about software development with .NET technologies.

You can find me on:
LinkedIn | Github | StackOverflow | X / Twitter | Threads

Visual Studio for Mac: The target platform identifier was not recognized .NET MAUI

This content has 6 months. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.