|
1 | 1 | <Project>
|
2 | 2 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
3 | 3 |
|
| 4 | + <UsingTask TaskName="GenerateChecksums" AssemblyFile="$(LocalBuildToolsTaskFile)" /> |
| 5 | + |
| 6 | + <PropertyGroup> |
| 7 | + <SuppressFinalPackageVersion>true</SuppressFinalPackageVersion> |
| 8 | + </PropertyGroup> |
| 9 | + |
| 10 | + <Target Name="CreateChecksums"> |
| 11 | + <ItemGroup> |
| 12 | + <ArtifactsForGeneratingChecksums |
| 13 | + Include="@(UploadToBlobStorageFile)" |
| 14 | + DestinationPath="%(FullPath)$(ChecksumExtension)" /> |
| 15 | + |
| 16 | + <GeneratedChecksumFile Include="@(ArtifactsForGeneratingChecksums -> '%(DestinationPath)')" /> |
| 17 | + </ItemGroup> |
| 18 | + |
| 19 | + <GenerateChecksums Items="@(ArtifactsForGeneratingChecksums)" /> |
| 20 | + </Target> |
| 21 | + |
4 | 22 | <Target Name="SignPackages"
|
5 | 23 | Condition="'$(SkipSigning)' != 'true' and '$(SignType)' != 'public'">
|
6 | 24 | <Message Importance="High" Text="Signing final packages" />
|
|
13 | 31 | <Target Name="UploadPreparedArtifactsToPipeline"
|
14 | 32 | DependsOnTargets="
|
15 | 33 | FindDownloadedArtifacts;
|
16 |
| - SignPackages"> |
| 34 | + SignPackages; |
| 35 | + CreateChecksums"> |
17 | 36 | <PropertyGroup>
|
18 | 37 | <PreparedFileUploadDir>$(ArtifactsObjDir)PreparedFileUpload\</PreparedFileUploadDir>
|
19 | 38 | </PropertyGroup>
|
20 | 39 |
|
21 |
| - <Copy SourceFiles="@(UploadToBlobStorageFile)" DestinationFolder="$(PreparedFileUploadDir)"> |
| 40 | + <ItemGroup> |
| 41 | + <AllFilesToBlobStorage Include="@(UploadToBlobStorageFile);@(UploadToBlobStorageFile)" /> |
| 42 | + </ItemGroup> |
| 43 | + |
| 44 | + <Copy SourceFiles="@(AllFilesToBlobStorage)" DestinationFolder="$(PreparedFileUploadDir)"> |
22 | 45 | <Output TaskParameter="CopiedFiles" ItemName="CopiedUploadToBlobStorageFile" />
|
23 | 46 | </Copy>
|
24 | 47 |
|
|
96 | 119 |
|
97 | 120 | <ItemsToPush
|
98 | 121 | Include="@(UploadToBlobStorageFile)"
|
99 |
| - Exclude="@(NupkgToPublishFile);@(SymbolNupkgToPublishFile)" /> |
100 |
| - <ItemsToPush> |
101 |
| - <RelativeBlobPath>assets/windowsdesktop/$(InstallersRelativePath)%(Filename)%(Extension)</RelativeBlobPath> |
| 122 | + Exclude="@(NupkgToPublishFile);@(SymbolNupkgToPublishFile)"> |
| 123 | + <RelativeBlobPath>$(InstallersRelativePath)%(Filename)%(Extension)</RelativeBlobPath> |
102 | 124 | </ItemsToPush>
|
| 125 | + |
| 126 | + <ItemsToPush Include="@(GeneratedChecksumFile)"> |
| 127 | + <RelativeBlobPath>$(InstallersRelativePath)%(Filename)%(Extension)</RelativeBlobPath> |
| 128 | + <Category>Checksum</Category> |
103 | 129 | </ItemGroup>
|
104 | 130 |
|
105 | 131 | <!-- Push items to AzDO as build artifacts, generating the asset manifest as a side effect. -->
|
|
0 commit comments