dotnet-installer/build/publish/Microsoft.DotNet.Cli.Checksum.targets
Nate Amundson 3ae14ab618 Upload checksums for installation artifacts (#4191)
The checksums are SHA-512 hashes, which users can use to verify file
integrity and authenticity.
2016-10-12 14:25:06 -05:00

21 lines
915 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="GenerateChecksums"
DependsOnTargets="Init;
InitializeChecksumItemGroup;"
Inputs="@(ArtifactsForGeneratingChecksums)"
Outputs="%(ArtifactsForGeneratingChecksums.DestinationPath)">
<GenerateChecksums Items="@(ArtifactsForGeneratingChecksums)" />
</Target>
<Target Name="InitializeChecksumItemGroup"
DependsOnTargets="Init;
GatherItemsForPattern">
<ItemGroup>
<ArtifactsForGeneratingChecksums Include="@(ForPublishing)">
<DestinationPath>%(ForPublishing.FullPath).sha</DestinationPath>
<RelativeBlobPath>%(ForPublishing.RelativeBlobPath).sha</RelativeBlobPath>
</ArtifactsForGeneratingChecksums>
</ItemGroup>
</Target>
</Project>