Duplicate productVersion.txt with repo-specific name
This commit is contained in:
parent
2cc9c2d4f3
commit
3aad49b708
|
|
@ -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">
|
||||
<!--
|
||||
|
|
@ -78,10 +80,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'">
|
||||
<!--
|
||||
|
|
@ -106,5 +113,10 @@
|
|||
Lines="$(_ProductVersion)"
|
||||
Overwrite="true"
|
||||
Encoding="ASCII" />
|
||||
<WriteLinesToFile
|
||||
File="$(RepoProductVersionFileLocation)"
|
||||
Lines="$(_ProductVersion)"
|
||||
Overwrite="true"
|
||||
Encoding="ASCII" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue