Unable to debug Mac Catalyst on windows in .Net MAUI app

Anonymous
2022-09-12T14:25:34.65+00:00

I am developing a desktop application targeting Windows Machine and Mac OS. I was able to debug for windows machine. However, I am unable to debug for windows and I keep getting this message.

240123-mac-catalyst-issue.png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
939 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,316 Reputation points Microsoft Vendor
    2022-09-13T02:21:45.857+00:00

    Hello @Anonymous ,

    macOS apps built using .NET MAUI use Mac Catalyst, it requires a Mac. And .NET MAUI apps that target Mac Catalyst can only be launched and debugged using Visual Studio 2022 for Mac 17.4 Preview.

    For more details, you can refer to
    Build your first .NET MAUI app - .NET MAUI | Microsoft Learn
    What is .NET MAUI? - .NET MAUI | Microsoft Learn
    Visual Studio 2022 for Mac v17.4 Preview - Release Notes | Microsoft Learn

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. William Mincy 1 Reputation point
    2022-12-07T02:01:39.693+00:00

    Within. Visual Studio you have to change the target framework in order to run the cross platform application in Windows.

    Click on the down arrow next to the run button, and toward the bottom of the fly out you will see Framework as an option. Select the Windows option from there and then hit the Run button. It should start up for you without any problems or needing to manually edit the project file.

    0 comments No comments

  3. Steve Johnson 1 Reputation point
    2022-12-15T18:53:39.127+00:00

    VS keeps auto-selecting the Mac option.

    0 comments No comments