Normalize code sign metadata to avoid duplication between projects and cross-gen config settings

This commit is contained in:
Nate McMaster 2018-11-14 15:14:27 -08:00
parent 0782a9dfa9
commit 289050b9f2
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 7 additions and 1 deletions

View File

@ -52,11 +52,17 @@
<_FilesToSign Include="@(_ShippedRepoFileSignInfo)" Condition="'%(_ShippedRepoFileSignInfo.IsFileToSign)' == 'true' AND '%(_ShippedRepoFileSignInfo.Container)' != '' " />
<FilesToSign Include="@(_FilesToSign)" />
<!-- Normalize FilesToExcludeFromSigning to filename + extension. -->
<_Temp Remove="@(_Temp)" />
<_Temp Include="@(FilesToExcludeFromSigning)" />
<FilesToExcludeFromSigning Remove="@(FilesToExcludeFromSigning)" />
<FilesToExcludeFromSigning Include="@(_Temp->'%(FileName)%(Extension)')" />
<_Temp Remove="@(_Temp)" />
<FilesToExcludeFromSigning Include="@(_ShippedRepoFileSignInfo->'%(FileName)%(Extension)')" Condition="'%(_ShippedRepoFileSignInfo.IsFileToExcludeFromSign)' == 'true'" />
<FilesToExcludeFromSigning Include="@(_RepoFileSignInfo->'%(FileName)%(Extension)')" Condition="'%(_RepoFileSignInfo.IsFileToExcludeFromSign)' == 'true'" />
<!-- Workaround for the way we have both repo and Universe builds, crossgen AND uncrossgened outputs. This prevents duplicate configuration between 'exclude' and 'sign' options. -->
<FilesToExcludeFromSigning Remove="@(FilesToSign->'%(FileName)%(Extension)')" />
<FilesToExcludeFromSigning Remove="@(_FilesToSign->'%(FileName)%(Extension)')" />
</ItemGroup>
</Target>