|
|
@@ -8,7 +8,9 @@
|
|
|
|
|
|
<_UploadPathRoot>aspnetcore</_UploadPathRoot>
|
|
|
<ProductVersionFileName>productVersion.txt</ProductVersionFileName>
|
|
|
+ <RepoProductVersionFileName>$(_UploadPathRoot)-$(ProductVersionFileName)</RepoProductVersionFileName>
|
|
|
<ProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(ProductVersionFileName)</ProductVersionFileLocation>
|
|
|
+ <RepoProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(RepoProductVersionFileName)</RepoProductVersionFileLocation>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
<!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. -->
|
|
|
@@ -33,7 +35,7 @@
|
|
|
<_ChecksumsToPublish Include="$(ArtifactsDir)**\*.sha512" />
|
|
|
</ItemGroup>
|
|
|
|
|
|
- <Target
|
|
|
+ <Target
|
|
|
Name="_PublishInstallersAndChecksumsAndProductVersion"
|
|
|
DependsOnTargets="_WriteProductVersionFile">
|
|
|
<!--
|
|
|
@@ -74,10 +76,15 @@
|
|
|
<PublishFlatContainer>true</PublishFlatContainer>
|
|
|
<RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(ProductVersionFileName)</RelativeBlobPath>
|
|
|
</ItemsToPushToBlobFeed>
|
|
|
+
|
|
|
+ <ItemsToPushToBlobFeed Include="$(RepoProductVersionFileLocation)" Condition=" '$(PublishInstallerBaseVersion)' == 'true'">
|
|
|
+ <PublishFlatContainer>true</PublishFlatContainer>
|
|
|
+ <RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(RepoProductVersionFileName)</RelativeBlobPath>
|
|
|
+ </ItemsToPushToBlobFeed>
|
|
|
</ItemGroup>
|
|
|
</Target>
|
|
|
|
|
|
- <Target
|
|
|
+ <Target
|
|
|
Name="_WriteProductVersionFile"
|
|
|
Condition=" '$(PublishInstallerBaseVersion)' == 'true'">
|
|
|
<!--
|
|
|
@@ -102,5 +109,10 @@
|
|
|
Lines="$(_ProductVersion)"
|
|
|
Overwrite="true"
|
|
|
Encoding="ASCII" />
|
|
|
+ <WriteLinesToFile
|
|
|
+ File="$(RepoProductVersionFileLocation)"
|
|
|
+ Lines="$(_ProductVersion)"
|
|
|
+ Overwrite="true"
|
|
|
+ Encoding="ASCII" />
|
|
|
</Target>
|
|
|
</Project>
|