Repository navigation
Use stable signing identifiers for macOS .NET tools - #10197
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
Restore the official VMR build matrix after validating macOS signing. Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The NativeAOT plist emits a four-component CFBundleVersion, which does not conform to Apple’s bundle-version format.
2 open findings
What changed in this PR
Adds stable macOS signing identifiers and bundle metadata to concrete .NET tools across Runtime and SDK layout generation.
Changes:
- Embeds stable identifiers in native and NativeAOT tools.
- Applies identifiers during SDK layout ad hoc signing.
- Documents signing conventions and ownership.
| File | Description |
|---|---|
src/sdk/src/Layout/redist/targets/GenerateLayout.targets |
Signs Roslyn and MSBuild apphosts with stable identifiers. |
src/sdk/src/Layout/redist/targets/BundledDotnetTools.targets |
Signs bundled ASP.NET Core tool hosts. |
src/sdk/src/Layout/Directory.Build.props |
Defines SDK apphost signing identifiers. |
src/sdk/src/Layout/AGENTS.md |
Documents SDK signing conventions. |
src/runtime/src/tools/ilasm/src/ilasm/ilasm.csproj |
Adds ilasm bundle metadata. |
src/runtime/src/native/corehost/dotnet/CMakeLists.txt |
Adds dotnet host metadata. |
src/runtime/src/mono/mono/mini/CMakeLists.txt |
Adds mono-sgen metadata. |
src/runtime/src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj |
Adds ilc bundle metadata. |
src/runtime/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj |
Adds crossgen2 bundle metadata. |
src/runtime/src/coreclr/README.md |
Documents NativeAOT metadata and signing. |
src/runtime/src/coreclr/ildasm/exe/CMakeLists.txt |
Adds ildasm metadata. |
src/runtime/src/coreclr/ilasm/CMakeLists.txt |
Adds native ilasm metadata. |
src/runtime/src/coreclr/hosts/corerun/CMakeLists.txt |
Adds corerun metadata. |
src/runtime/src/coreclr/debug/createdump/CMakeLists.txt |
Adds createdump metadata. |
src/runtime/eng/toolAot.targets |
Generates plist metadata and signs NativeAOT hosts. |
src/runtime/eng/native/Info.plist.in |
Defines native executable plist template. |
src/runtime/eng/native/functions.cmake |
Adds reusable macOS metadata embedding. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
mmitche
reviewed
Oct 15, 2026
agocke
reviewed
Oct 15, 2026
agocke
reviewed
Oct 15, 2026
agocke
reviewed
Oct 15, 2026
steveisok
approved these changes
Oct 15, 2026
steveisok
approved these changes
Oct 15, 2026
akoeplinger
reviewed
Oct 16, 2026
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
Use the pinned templating task for the shared plist and preserve existing entitlements when signing NativeAOT tool hosts. Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
This was referenced Oct 19, 2026
Retain requirements, signing flags, hardened runtime version, and launch and library constraints alongside entitlements when signing tool hosts. Continue explicitly supplying the intended identifiers and apphost entitlement files. Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
mmitche
approved these changes
Oct 20, 2026
hoyosjs
added a commit
that referenced
this pull request
Oct 20, 2026
Backport the macOS signing fix and review corrections from #10197 for the hosts present in .NET 10. Use the pinned templating task with staged rendering to preserve incremental linking. Co-authored-by: Copilot <[email protected]> Copilot-Session: 7428b286-6075-4523-8c20-a8e1e959ed1a
This was referenced Oct 21, 2026
This was referenced Oct 27, 2026
7 of 13 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Give concrete macOS .NET tools stable signing identifiers instead of filename- or UUID-derived identities. Embed bundle metadata in native hosts and NativeAOT tools, and explicitly apply the identifiers when ad hoc signing NativeAOT tools and SDK-created apphosts. Existing entitlements are retained; NativeAOT tools do not gain JIT entitlements. Reusable apphost templates remain application-neutral.
Identifiers use
com.microsoft.dotnet.<tool-name>in lowercase. EmbeddedCFBundleNamevalues are the plain tool names.com.microsoft.dotnet.dotnetcom.microsoft.dotnet.createdumpcom.microsoft.dotnet.coreruncom.microsoft.dotnet.ilasmcom.microsoft.dotnet.ildasmcom.microsoft.dotnet.mono-sgencom.microsoft.dotnet.crossgen2com.microsoft.dotnet.ilccom.microsoft.dotnet.csccom.microsoft.dotnet.vbccom.microsoft.dotnet.vbcscompilercom.microsoft.dotnet.msbuildcom.microsoft.dotnet.dotnet-dev-certscom.microsoft.dotnet.dotnet-user-jwtscom.microsoft.dotnet.dotnet-user-secretsASP.NET Core native shims are signed in the SDK layout; standalone tool-package signing remains producer-owned follow-up work.
Manual validation: inspected the signed ARM64 SDK
12.0.100-alpha.1.26513.113. All 28 Mach-O files had valid Microsoft Developer ID signatures, and the nine targeted executables present retained their expected identifiers and entitlements. WithDOTNET_ROOTpointing to that SDK, created, built and ran a console project and its apphost, exercised the shipped tools' help, and verified isolated compiler-server startup. Native metadata and ad hoc signing were also exercised with arm64/x64 fixtures. The temporary pipeline changes are reverted.Note
This description was prepared with GitHub Copilot.