-
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: agocke <[email protected]>
Co-authored-by: agocke <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds new documentation for publishing .NET applications on Mac OS, addressing Apple-specific requirements like code signing, notarization, and entitlements. The document is AI-assisted and follows the repository's style guidelines.
Key changes:
- New how-to guide covering Mac OS publishing prerequisites and steps
- Documentation of platform-specific entitlement requirements for CoreCLR vs Native AOT apps
- Security guidance on signing and notarization requirements
Co-authored-by: agocke <[email protected]>
docs/core/deploying/macos.md
Outdated
|
|
||
| ## Publish your app | ||
|
|
||
| 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.md file not found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to publishing docs? https://learn.microsoft.com/en-us/dotnet/core/deploying/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot please fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit e18a988. Changed the link from index.md to /dotnet/core/deploying/ to point to the published documentation.
docs/core/deploying/macos.md
Outdated
|
|
||
| ## Sign and notarize | ||
|
|
||
| Use Apple's developer documentation to sign and notarize the binary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to apple's developer docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added link to Apple's notarization documentation in commit e18a988.
Co-authored-by: agocke <[email protected]>
docs/core/deploying/macos.md
Outdated
|
|
||
| .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 CoreCLR apps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"CoreCLR apps" is not something that we explain anywhere. We should explain this as apps published as Native AOT vs. apps not published as Native AOT. Also, link to Native AOT publishing topic from here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in commit e97042e. Replaced "CoreCLR apps" terminology with "apps not published as Native AOT" and "apps published as Native AOT", and added links to the Native AOT documentation.
Co-authored-by: jkotas <[email protected]>
|
|
||
| ## Prerequisites | ||
|
|
||
| Before you publish your .NET application for macOS, ensure you have the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this talking about dotnet publish or some other kind of publish? I assume that it is the latter. Does it need clarification?
Summary
Created a new macOS publishing documentation page at
docs/core/deploying/macos.mdthat provides:com.apple.security.cs.allow-jitentitlementcom.apple.security.get-task-allowfor dump collection andcom.apple.security.cs.debuggerfor attaching debuggersThe documentation follows all repository writing style guidelines:
This pull request was created as a result of the following prompt from Copilot chat.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Internal previews