How to find where .pkg file store the installed app

Dani_S 3,316 Reputation points

I Use the following command to create a .pkg:


dotnet publish -f net8.0-maccatalyst -c Release

Publishing builds the app, and then copies the .app to the bin/Release/net8.0-maccatalyst/ folder or the .pkg to the bin/Release/net8.0-maccatalyst/publish/ folder. If you publish the app using only a single architecture, the .app will be published to the bin/Release/net8.0-maccatalyst/{architecture}/ folder while the .pkg will be published to the bin/Release/net8.0-maccatalyst/{architecture}/publish/ folder.

For more information about the dotnet publish command, see dotnet publish.

Later i install the .pck file in my main drive but where i find the app after the installtion?


A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,306 Reputation points Microsoft Vendor


    Why i do not succeded to publish an unsigned .NET MAUI Mac Catalyst app with command line

    You can do this. The only limit is the safety from Apple.

    You have published an unsigned app and get the .pkg file. I misunderstand your main purpose before, your main issue is how to run the unsigned app.

    Before installing the .pkg, please clean the bin/obj folder, then you can find it in Applications.

    (If you still cannot find the app, please choose Apple menu > System Settings, click Privacy & Security in the sidebar, then go to Security on the right, and check if the app is not allowed)

    Run the unsigned app

    By default, .app and .pkg files that are downloaded from the internet can't be run by double-clicking on them. For more information, see Open a Mac app from an unidentified developer on

    To ensure that a .pkg installs the app to your Applications folder, copy the .pkg to outside of your build artifacts folder and delete the bin and obj folders before double-clicking on the .pkg.

    From Publish an unsigned .NET MAUI Mac Catalyst app - .NET MAUI | Microsoft Learn


    Deleting the bin and obj folders from the project is a key step. Please follow the step on the doc above

    My test:

    1. Remove the bin and obj folder in my project folder
    2. New a folder in Document folder in the mac
    3. move the pkg into this folder (I know you move the pkg in Desktop, please do not do like that or create a new folder in Desktop and move the pkg in this folder)
    4. double-click the pkg, the app will appear in that folder
    5. drag this app icon and move this app to Application folder

    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.