CodeSign.targets 1.4 KB

1234567891011121314151617181920212223
  1. <Project>
  2. <PropertyGroup>
  3. <CodeSignDependsOn>$(CodeSignDependsOn);CollectFileSignInfo</CodeSignDependsOn>
  4. <RedistNetCorePath>$(IntermediateDir)ar\$(SharedFxRid)\</RedistNetCorePath>
  5. </PropertyGroup>
  6. <Target Name="CollectFileSignInfo">
  7. <ItemGroup>
  8. <FilesToSign Include="$(ArtifactsShippingPackagesDir)*.jar" Certificate="MicrosoftJAR" />
  9. <FilesToSign Include="$(ArtifactsShippingPackagesDir)*.nupkg" Exclude="$(ArtifactsShippingPackagesDir)*.symbols.nupkg" Certificate="NuGet" />
  10. <FilesToSign Include="$(ArtifactsNonShippingPackagesDir)*.nupkg" Exclude="$(ArtifactsNonShippingPackagesDir)*.symbols.nupkg" Certificate="NuGet" />
  11. <FilesToSign Include="$(VisualStudioSetupOutputPath)*.vsix" Certificate="VsixSHA2" />
  12. <!-- "None" means don't sign the .zip file itself, but still scan the contents of the .zip for signable files. -->
  13. <FilesToSign Include="$(InstallersOutputPath)*.zip" Certificate="None" />
  14. <!-- These files should already be signed by the .NET Core team. They have to be listed again here because we recreate a redistributable which includes the Microsoft.NETCore.App runtime. -->
  15. <FilesToExcludeFromSigning Include="$(RedistNetCorePath)shared\Microsoft.NETCore.App\**\*.dll" />
  16. <FilesToExcludeFromSigning Include="$(RedistNetCorePath)host\**\*.dll" />
  17. <FilesToExcludeFromSigning Include="$(RedistNetCorePath)dotnet.exe" />
  18. </ItemGroup>
  19. </Target>
  20. </Project>