-
Couldn't load subscription status.
- Fork 6.1k
Add publishing guidance for macOS applications #49417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6828cd0
Initial plan
Copilot 7676183
Add Mac OS publishing documentation
Copilot 18f8a41
Update warning message about unsigned apps
Copilot 115eefc
Fix macOS branding and add debugging entitlements
Copilot e18a988
Add links to publishing overview and Apple notarization docs
Copilot e97042e
Clarify Native AOT terminology and add links
Copilot add12d6
Reorganize signing section structure
Copilot 903e876
Apply suggestions from code review
jkotas 214af4e
Update docs/core/deploying/macos.md
jkotas 279c5fe
Update docs/core/deploying/macos.md
jkotas fd0e3fc
Update docs/core/deploying/macos.md
jkotas 0ea5991
Update docs/core/deploying/macos.md
jkotas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| title: Publish .NET apps for macOS | ||
| description: Learn how to publish .NET applications for macOS, including signing, notarization, and app entitlements. | ||
| author: agocke | ||
| ms.author: angocke | ||
| ms.date: 10/22/2025 | ||
| ms.topic: how-to | ||
| ai-usage: ai-assisted | ||
| --- | ||
|
|
||
| # Publish .NET apps for macOS | ||
|
|
||
| Publishing .NET applications for macOS requires several additional steps compared to other platforms, due to Apple's security requirements. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before you publish your .NET application for macOS, ensure you have the following: | ||
|
|
||
| - **Apple Developer Account**: Needed for code signing and notarization. | ||
| - **Xcode Command Line Tools**: Provides `codesign`, `altool`, and other utilities. | ||
| - **.NET SDK**: Ensure you have the latest .NET SDK installed. | ||
|
|
||
| ## Produce your app using .NET SDK | ||
|
|
||
| Use one of the methods described in the [.NET application publishing overview](/dotnet/core/deploying/) to produce an application. You can create either a framework-dependent or self-contained application. | ||
|
|
||
| ## Sign and notarize your app | ||
|
|
||
| Use [Apple's developer documentation](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution) to sign and notarize the app native binaries. .NET creates a native *apphost* executable as the entry point for your app. This apphost must be signed and, if your app uses special capabilities, it must be assigned the appropriate **entitlements**. | ||
|
|
||
| ### Entitlements for apps not published as Native AOT | ||
|
|
||
| For apps not published as [Native AOT](native-aot/index.md), the `com.apple.security.cs.allow-jit` entitlement is required. | ||
|
|
||
| ### Entitlements for apps published as Native AOT | ||
|
|
||
| For apps published as [Native AOT](native-aot/index.md), no entitlements are required. | ||
|
|
||
| ### Optional entitlements for debugging and diagnostics | ||
|
|
||
| The following entitlements enable additional debugging and diagnostic capabilities: | ||
|
|
||
| - **`com.apple.security.get-task-allow`**: Needed for dump collection with `createdump` and `dotnet dump`. | ||
| - **`com.apple.security.cs.debugger`**: Needed to attach a debugger to the process. | ||
|
|
||
| > [!WARNING] | ||
| > Failing to sign and notarize your app might result in the application crashing while executing a restricted operation. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.