<?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>
