Skip to content

Commit 82c9b34

Browse files
ViktorHoferwtgodbe
andauthored
Fix version files missing from publishing (#54663)
* Fix version files missing from publishing * More clean-up and fix PublishInstallerBaseVersion condition * Update Publishing.props --------- Co-authored-by: wtgodbe <[email protected]>
1 parent 301c278 commit 82c9b34

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ variables:
6060
- group: Publish-Build-Assets
6161
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
6262
- name: _PublishArgs
63-
value: /p:GenerateChecksums=true
64-
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
63+
value: /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
6564
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
6665
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
6766
- name: WindowsArm64LogArgs

.azure/pipelines/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ variables:
6262
- group: Publish-Build-Assets
6363
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
6464
- name: _PublishArgs
65-
value: /p:GenerateChecksums=true
66-
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
65+
value: /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
6766
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
6867
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
6968
- name: WindowsArm64LogArgs

eng/AfterSigning.targets

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<Project>
2-
<PropertyGroup Condition="'$(GenerateChecksums)' == 'true'">
2+
<PropertyGroup>
33
<!-- $(InstallersOutputPath) is not defined. Root Directory.Build.props is not imported. -->
44
<InstallersOutputPath>$(ArtifactsDir)installers\</InstallersOutputPath>
55
<_SuppressSdkImports>false</_SuppressSdkImports>
66
</PropertyGroup>
77

88
<Target Name="PopulateGenerateChecksumItems"
9-
Condition="'$(GenerateChecksums)' == 'true'"
109
AfterTargets="Build"
11-
BeforeTargets="GenerateChecksums" >
10+
BeforeTargets="GenerateChecksums">
1211

1312
<ItemGroup>
1413
<InstallerFiles Include="$(InstallersOutputPath)**\*.msi" />
@@ -25,6 +24,6 @@
2524

2625
</Target>
2726

28-
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(GenerateChecksums)' == 'true'" />
27+
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
2928

3029
</Project>

eng/Publishing.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'$(PostBuildSign)' != 'true' and
1818
'$(DotNetBuildRepo)' != 'true'">false</EnableDefaultPublishItems>
1919

20-
<PublishInstallerBaseVersion Condition="'$(PublishInstallerBaseVersion)' == '' and '$(EnableDefaultPublishItems)' == 'true'">true</PublishInstallerBaseVersion>
20+
<PublishInstallerBaseVersion Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildRepo)' == 'true'">true</PublishInstallerBaseVersion>
2121
<!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. -->
2222
<AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages>
2323
</PropertyGroup>
@@ -33,7 +33,7 @@
3333
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.jar" UploadPathSegment="jar" />
3434
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.pom" UploadPathSegment="jar" />
3535
<!-- All builds produce npm assets - only publish them once -->
36-
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(OS)' == 'Windows_NT'" />
36+
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildRepo)' == 'true'" />
3737
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.deb" UploadPathSegment="Runtime" />
3838
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.exe" UploadPathSegment="Runtime" />
3939
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.msi" UploadPathSegment="Runtime" />

0 commit comments

Comments
 (0)