-
Notifications
You must be signed in to change notification settings - Fork 6k
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 2 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
Some comments aren't visible on the classic Files Changed page.
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,44 @@ | ||
| --- | ||
| title: Publish .NET apps for Mac OS | ||
| description: Learn how to publish .NET applications for Mac OS, including signing, notarization, and app entitlements. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| author: agocke | ||
| ms.author: angocke | ||
| ms.date: 10/22/2025 | ||
| ms.topic: how-to | ||
| ai-usage: ai-assisted | ||
| --- | ||
|
|
||
| # Publish .NET apps for Mac OS | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Publishing .NET applications for Mac OS requires several additional steps compared to other platforms, due to Apple's security requirements. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before you publish your .NET application for Mac OS, ensure you have the following: | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - **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. | ||
|
|
||
| ## Publish your app | ||
jkotas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Use one of the methods described in the [.NET application publishing overview](index.md) to produce an application. You can create either a framework-dependent or self-contained application. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Apphost and entry point | ||
jkotas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .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**. | ||
mmitche marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jkotas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Entitlements for CoreCLR apps | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| For CoreCLR apps, the `com.apple.security.cs.allow-jit` entitlement is required. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Entitlements for Native AOT apps | ||
|
|
||
| For Native AOT apps, no entitlements are required. | ||
|
|
||
| ## Sign and notarize | ||
|
|
||
| Use Apple's developer documentation to sign and notarize the binary. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| > [!WARNING] | ||
| > Failing to sign and notarize your app might result in users seeing security warnings or being unable to launch your application. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
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.