Maui - publish for mac from Windows10

yaron kadman 81 Reputation points
2022-11-15T16:25:48.92+00:00

Hi,
Is it possible to build a .pkg or .app file from Visual studio on Windows 10?

I followed the docs: changed to "Mac Catalyst" instead of "Windows Machine" (next to Any CPU) and then opened a terminal to the folder where the .csproj file is.
Then I ran: dotnet build -f:net7.0-maccatalyst -c:Release /p:CreatePackage=true.
It ran without errors or warnings and now I see that there are files in the bin\Release\net7.0-maccatalyst folder but I can not find a .pkg file (or .app file if I run the command without the createPackage=true).

Am I missing something? Where are the installation files?
Thanks
Yaron

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,425 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 20,366 Reputation points Microsoft Vendor
    2022-11-16T02:08:54.79+00:00

    Hello @yaron kadman ,

    Building a Mac app from Windows is not supported currently, you should archive the .pkg/.app from a Mac. In addition, you can join the GitHub discussion and feedback: .NET MAUI macOS target publishing/archiving

    For more details, you can refer to Build your first .NET MAUI app - .NET MAUI | Microsoft Learn and Publish a .NET MAUI app for macOS - .NET MAUI | 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful