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
[dotnet] Improve entitlements lookup for AdditionalAppExtensions. Fixes#19242. (#22882)
* Add support for a 'CodesignEntitlements' metadata to the 'AdditionalAppExtensions' item group, to make it easier to specify the entitlements for such an app extension.
* Warn if no entitlements are set for app extensions in 'AdditionalAppExtensions' items.
Fixes#19242.
Copy file name to clipboardExpand all lines: docs/building-apps/build-items.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,30 @@ application or library projects are built.
13
13
14
14
An item group that contains any additional app extensions to copy into the app bundle.
15
15
16
+
The following metadata can be set:
17
+
18
+
* Include: The path to the build directory for the Xcode app extension project.
19
+
* Name: The name of the extension.
20
+
* BuildOutput: This value is appended to the `Include` value to produce the location of the appex bundle. Typically Xcode will place simulator and device builds in different locations, so this can be used to have a single `AdditionalAppExtensions` entry pointing to two different appex bundles, depending on whether building for the simulator or device.
21
+
* CodesignEntitlements: Specifies the entitlements to use when signing the app extension. The default value is '%(Name).entitlements' in the 'Include' build directory (if this file exists).
22
+
* CodesignWarnIfNoEntitlements: A warning will be produced if no `CodesignEntitlements` value is set. This property can be set to `false` to silence this warning.
<!-- The idea here is that after _ResolveAppExtensionReferences we inject the 3rd party extensions into the list being processed later for embedding and code signing.
2548
2551
- _ResolvedAppExtensionReferences is an item group of the path, so that's easy.
2549
2552
- _AppExtensionCodesignProperties less so. It is generated by reading codesign.items generated by the c# tasks during build, which we don't have.
@@ -2555,7 +2558,9 @@ Copyright (C) 2018 Microsoft. All rights reserved.
<CodesignEntitlementsCondition="'%(AdditionalAppExtensions.CodesignEntitlements)' == '' And Exists('%(AdditionalAppExtensions.Identity)/%(AdditionalAppExtensions.Name).entitlements')">%(AdditionalAppExtensions.Identity)/%(AdditionalAppExtensions.Name).entitlements</CodesignEntitlements>
0 commit comments