<!-- apphost and comhost template files are not signed, by design. -->
<FileSignInfo Include="apphost.exe;singlefilehost.exe;comhost.dll" CertificateName="None" />
+
+ <!-- Third-party components which should be signed. -->
+ <FileSignInfo Include="Newtonsoft.Json.dll" CertificateName="3PartySHA2" />
+ <FileSignInfo Include="Mono.Cecil.dll" CertificateName="3PartySHA2" />
+ <FileSignInfo Include="Mono.Cecil.Mdb.dll" CertificateName="3PartySHA2" />
+ <FileSignInfo Include="Mono.Cecil.Pdb.dll" CertificateName="3PartySHA2" />
+ <FileSignInfo Include="Mono.Cecil.Rocks.dll" CertificateName="3PartySHA2" />
</ItemGroup>
<ItemGroup Condition="'$(CrossTargetComponentFolder)' != ''">
</ItemGroup>
<ItemGroup>
- <!-- External files -->
- <ItemsToSign Remove="@(ItemsToSign->WithMetadataValue('Filename', 'Newtonsoft.Json'))" />
- <ItemsToSign Remove="@(ItemsToSign->WithMetadataValue('Filename', 'Mono.Cecil'))" />
- <ItemsToSign Remove="@(ItemsToSign->WithMetadataValue('Filename', 'Mono.Cecil.Pdb'))" />
- <ItemsToSign Remove="@(ItemsToSign->WithMetadataValue('Filename', 'Mono.Cecil.Rocks'))" />
- </ItemGroup>
-
- <ItemGroup>
<ItemsToSign Update="@(ItemsToSign)" Authenticode="$(CertificateId)" />
</ItemGroup>