CodeSign.props 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Project>
  2. <ItemGroup>
  3. <!-- Use the PublicKeyToken of .NET assemblies to determine 'Microsoft' assemblies. -->
  4. <AssemblyToSign Include="AspNetCore" PublicKeyToken="adb9793829ddae60" CertificateName="Microsoft400" />
  5. <AssemblyToSign Include="MsSharedLib72" PublicKeyToken="31bf3856ad364e35" CertificateName="Microsoft400" />
  6. <AssemblyToSign Include="MsftStrongName" PublicKeyToken="b03f5f7f11d50a3a" CertificateName="Microsoft400" />
  7. <AssemblyToSign Include="MsftStrongName2" PublicKeyToken="b77a5c561934e089" CertificateName="Microsoft400" />
  8. <AssemblyToSign Include="MsftOpenStrongName" PublicKeyToken="cc7b13ffcd2ddd51" CertificateName="Microsoft400" />
  9. <!-- Native .dll's. These don't have a public key token, but are from Microsoft and should be signed. -->
  10. <FileNamesToSign Include="aspnetcore.dll" CertificateName="Microsoft400" />
  11. <FileNamesToSign Include="aspnetcorev2_inprocess.dll" CertificateName="Microsoft400" />
  12. <FileNamesToSign Include="aspnetcorev2_outofprocess.dll" CertificateName="Microsoft400" />
  13. <FileNamesToSign Include="aspnetcorev2.dll" CertificateName="Microsoft400" />
  14. <FileNamesToSign Include="dotnet-blazor.exe" CertificateName="Microsoft400" />
  15. <FileNamesToSign Include="dotnet-dev-certs.exe" CertificateName="Microsoft400" />
  16. <FileNamesToSign Include="dotnet-sql-cache.exe" CertificateName="Microsoft400" />
  17. <FileNamesToSign Include="dotnet-user-secrets.exe" CertificateName="Microsoft400" />
  18. <FileNamesToSign Include="dotnet-watch.exe" CertificateName="Microsoft400" />
  19. <FileNamesToSign Include="Microsoft.AspNetCore.Blazor.Build.exe" CertificateName="Microsoft400" />
  20. <FileNamesToSign Include="sni.dll" CertificateName="Microsoft400" />
  21. <!-- Third-party components which should be signed. -->
  22. <FileNamesToSign Include="Newtonsoft.Json.dll" CertificateName="3PartySHA2" />
  23. <FileNamesToSign Include="AngleSharp.dll" CertificateName="3PartySHA2" />
  24. <FileNamesToSign Include="Mono.Cecil.dll" CertificateName="3PartySHA2" />
  25. <FileNamesToSign Include="Mono.Cecil.Mdb.dll" CertificateName="3PartySHA2" />
  26. <FileNamesToSign Include="Mono.Cecil.Pdb.dll" CertificateName="3PartySHA2" />
  27. <FileNamesToSign Include="Mono.Cecil.Rocks.dll" CertificateName="3PartySHA2" />
  28. </ItemGroup>
  29. <ItemGroup Label="Code sign exclusions">
  30. <!-- We don't need to code sign .js files because they are not used in Windows Script Host. -->
  31. <FileExtensionsToSign Include=".js" CertificateName="None" />
  32. <!-- We don't produce font files. We rebundle some for using the web brower, so they do not need to be signed. -->
  33. <FileExtensionsToSign Include=".otf" CertificateName="None" />
  34. <FileExtensionsToSign Include=".ttf" CertificateName="None" />
  35. <!-- This is a text file which doesn't need to be code signed, even though some .mof files can be signed. -->
  36. <FileNamesToSign Include="ancm.mof" CertificateName="None" />
  37. <!-- Exclude the apphost because this is expected to be code-signed by customers after the SDK modifies it. -->
  38. <FileNamesToSign Include="apphost.exe" CertificateName="None" />
  39. </ItemGroup>
  40. </Project>