You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codesigning the apphost on macOS should preserve entitlements #113707
It looks like the code in HostWriter.cs which gets invoked by the CreateAppHost msbuild task in the dotnet sdk to ad-hoc sign the binary doesn't preserve the entitlements.
It looks like the code in HostWriter.cs which gets invoked by the CreateAppHost msbuild task in the dotnet sdk to ad-hoc sign the binary doesn't preserve the entitlements.
Is it a regression from .NET 9? The code you are referring to was added in .NET 10: #108992, and the second part is in progress #110417.
We've decided not to implement this. For local development we want to enable debugging entitlements, but those entitlements are not desirable for release. Instead, we've created documentation on which entitlements are needed for minimal .NET functionality at https://learn.microsoft.com/en-us/dotnet/core/deploying/macos
Activity
dotnet-policy-service commentedon Mar 19, 2025
Tagging subscribers to this area: @vitek-karas, @agocke
See info in area-owners.md if you want to be subscribed.
agocke commentedon Mar 20, 2025
I believe this is supposed to be identical to what comes out of macOS ad-hoc codesign. Is that true? Or are they different?
akoeplinger commentedon Mar 20, 2025
it depends on the option,
codesignhas--preserve-metadata=entitlementswhich does thatam11 commentedon Mar 26, 2025
Is it a regression from .NET 9? The code you are referring to was added in .NET 10: #108992, and the second part is in progress #110417.
cc @jtschuster @filipnavara
akoeplinger commentedon Mar 26, 2025
no it's not a regression. in net9 we used the
codesigntool directly but didn't pass the--preserve-metadata=entitlementseitherjtschuster commentedon May 15, 2025
Investigated an issue today that wound up being due to this. I'll look into how much this would take to implement in the manager signer.
agocke commentedon Nov 20, 2025
We've decided not to implement this. For local development we want to enable debugging entitlements, but those entitlements are not desirable for release. Instead, we've created documentation on which entitlements are needed for minimal .NET functionality at https://learn.microsoft.com/en-us/dotnet/core/deploying/macos