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

Tag: maui on mac

  • Run .NET MAUI apps with Visual Studio for Mac

    This content has 3 years. 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.

    VS for Mac 17.0 Preview version is not yet supporting MAUI applications. But you can run them on macOS too, but you will need a terminal window for it!

    MAUI projects can not be set as a runnable project (yet)
    .NET 6 Xamarin and MAUl projects are not supported with this version of Visual Studio. The included target frameworks are not supported: net6.0-android|net6.0-ios|net6.0-maccatalyst
    

    If you are not familiar, how to set up your environment to start developing with .NET newest technology named MAUI, then read this article by me: https://www.banditoth.hu/2021/12/29/setup-net-maui-project-on-macos/

    Build and run on macOS

    Open up a terminal, and navigate next to your .sln file. Give out the following command:

    dotnet build YourSolutionName -t:Run -f net6.0-maccatalyst
    

    This will run your application on macOS. If you wish, you can change the last parameter to net6.0-android or net6.0-ios too.