Skip to content

Commit 560833f

Browse files
[main] Update dependencies from dotnet/arcade (#54681)
* Update dependencies from https://github.com/dotnet/arcade build Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor From Version 9.0.0-beta.24168.5 -> To Version 9.0.0-beta.24171.5 * Fix version file publishing issue and clean-up Publishing.props further. * simplify checksum generation * Simplify Publishing.props further * One more clean-up --------- Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]>
1 parent ec293ee commit 560833f

File tree

5 files changed

+71
-121
lines changed

5 files changed

+71
-121
lines changed

eng/AfterSigning.targets

Lines changed: 0 additions & 29 deletions
This file was deleted.

eng/Publishing.props

Lines changed: 53 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,17 @@
22

33
<PropertyGroup>
44
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets>
5-
<_UploadPathRoot>aspnetcore</_UploadPathRoot>
6-
<ProductVersionFileName>productVersion.txt</ProductVersionFileName>
7-
<RepoProductVersionFileName>$(_UploadPathRoot)-$(ProductVersionFileName)</RepoProductVersionFileName>
8-
<ProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(ProductVersionFileName)</ProductVersionFileLocation>
9-
<RepoProductVersionFileLocation>$(ArtifactsShippingPackagesDir)$(RepoProductVersionFileName)</RepoProductVersionFileLocation>
105

116
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows.
127
Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
138
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
149
to be published. Use DotNetBuildRepo is only set in the internal source build,
1510
and Build.proj is invoked from the wrapper build. -->
16-
<EnableDefaultPublishItems Condition="'$(OS)' != 'Windows_NT' and
17-
'$(PostBuildSign)' != 'true' and
18-
'$(DotNetBuildRepo)' != 'true'">false</EnableDefaultPublishItems>
11+
<EnableDefaultArtifacts Condition="'$(OS)' != 'Windows_NT' and
12+
'$(PostBuildSign)' != 'true' and
13+
'$(DotNetBuildRepo)' != 'true'">false</EnableDefaultArtifacts>
1914

20-
<PublishInstallerBaseVersion Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildRepo)' == 'true'">true</PublishInstallerBaseVersion>
15+
<PublishInstallerBaseVersion Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildOrchestrator)' == 'true'">true</PublishInstallerBaseVersion>
2116
<!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. -->
2217
<AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages>
2318
</PropertyGroup>
@@ -26,31 +21,38 @@
2621
<ItemGroup>
2722
<!-- Include our "loose" PDBs when publishing symbols. -->
2823
<FilesToPublishToSymbolServer Include="$(ArtifactsDir)symbols\**\*.pdb" />
29-
<WixPacksToPublish Include="$(ArtifactsDir)installers\**\*.wixpack.zip" />
3024

3125
<!-- Prepare for _PublishInstallersAndChecksums target. -->
32-
<_InstallersToPublish Remove="@(_InstallersToPublish)" />
3326
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.jar" UploadPathSegment="jar" />
3427
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.pom" UploadPathSegment="jar" />
3528
<!-- All builds produce npm assets - only publish them once -->
36-
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildRepo)' == 'true'" />
37-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.deb" UploadPathSegment="Runtime" />
38-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.exe" UploadPathSegment="Runtime" />
39-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.msi" UploadPathSegment="Runtime" />
40-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.rpm" UploadPathSegment="Runtime" />
41-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.tar.gz" UploadPathSegment="Runtime" />
29+
<_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildOrchestrator)' == 'true'" />
4230
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime" Condition="'$(PublishInstallerBaseVersion)' == 'true'" />
43-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.wixlib" UploadPathSegment="Runtime" />
44-
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.zip" UploadPathSegment="Runtime" />
31+
32+
<!-- The following installers create checksums -->
33+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.deb" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
34+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.exe" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
35+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.msi" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
36+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.rpm" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
37+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.tar.gz" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
38+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.wixlib" UploadPathSegment="Runtime" ChecksumPath="%(FullPath).sha512" />
39+
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.zip" UploadPathSegment="Runtime" >
40+
<!-- Exclude wixpack.zip files from checksum generation -->
41+
<ChecksumPath Condition="$([System.String]::Copy('%(Filename)%(Extension)').EndsWith('.wixpack.zip')) != 'true'">%(FullPath).sha512</ChecksumPath>
42+
</_InstallersToPublish>
43+
4544
<!-- Remove wixpacks if not doing post-build signing, since they are not needed -->
46-
<_InstallersToPublish Remove="@(WixPacksToPublish)" Condition="'$(PostBuildSign)' != 'true'" />
47-
<_ChecksumsToPublish Include="$(ArtifactsDir)installers\**\*.sha512" />
45+
<_InstallersToPublish Remove="$(ArtifactsDir)installers\**\*.wixpack.zip" Condition="'$(PostBuildSign)' != 'true'" />
46+
47+
<Artifact Include="@(_InstallersToPublish)"
48+
PublishFlatContainer="true">
49+
<!-- Working around msbuild not being able to negate the result of Contains() outside of targets -->
50+
<IsShipping Condition="$([System.String]::Copy('%(Filename)').ToLowerInvariant().Contains('internal')) == 'True'">false</IsShipping>
51+
<IsShipping Condition="$([System.String]::Copy('%(Filename)').ToLowerInvariant().Contains('internal')) != 'True'">true</IsShipping>
52+
</Artifact>
4853
</ItemGroup>
4954

50-
<Target
51-
Name="_PublishInstallersAndChecksumsAndProductVersion"
52-
DependsOnTargets="_WriteProductVersionFile"
53-
BeforeTargets="PublishToAzureDevOpsArtifacts">
55+
<Target Name="GetProductVersion">
5456
<!--
5557
This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#,
5658
and npm project. We use Microsoft.AspNetCore.InternalTesting.csproj because it is non-shipping (we need a non-stable
@@ -63,63 +65,40 @@
6365
</MSBuild>
6466

6567
<PropertyGroup>
66-
<_PackageVersion>@(_ResolvedPackageVersionInfo->'%(PackageVersion)')</_PackageVersion>
68+
<ProductVersion>%(_ResolvedProductVersionInfo.PackageVersion)</ProductVersion>
6769
</PropertyGroup>
70+
</Target>
6871

72+
<Target Name="GenerateProductVersionFiles"
73+
BeforeTargets="PublishToAzureDevOpsArtifacts"
74+
DependsOnTargets="GetProductVersion"
75+
Condition="'$(PublishInstallerBaseVersion)' == 'true'">
6976
<ItemGroup>
70-
<ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)"
71-
IsShipping="false"
72-
PublishFlatContainer="true"
73-
RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)" />
74-
75-
<ItemsToPushToBlobFeed Include="@(_InstallersToPublish)"
76-
IsShipping="!$([System.String]::Copy('%(Filename)').ToLower().Contains('internal'))"
77-
PublishFlatContainer="true"
78-
RelativeBlobPath="$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)" />
77+
<ProductVersionFile Include="$(ArtifactsShippingPackagesDir)productVersion.txt" />
78+
<ProductVersionFile Include="$(ArtifactsShippingPackagesDir)aspnetcore-productVersion.txt" />
79+
</ItemGroup>
7980

80-
<ItemsToPushToBlobFeed Include="$(ProductVersionFileLocation)"
81-
Condition="'$(PublishInstallerBaseVersion)' == 'true'"
82-
IsShipping="false"
83-
PublishFlatContainer="true"
84-
RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(ProductVersionFileName)" />
81+
<!-- Generate productVersion.txt file containing the product version. -->
82+
<WriteLinesToFile File="%(ProductVersionFile.Identity)"
83+
Lines="$(ProductVersion)"
84+
Overwrite="true"
85+
Encoding="ASCII" />
8586

86-
<ItemsToPushToBlobFeed Include="$(RepoProductVersionFileLocation)"
87-
Condition="'$(PublishInstallerBaseVersion)' == 'true'"
88-
IsShipping="false"
89-
PublishFlatContainer="true"
90-
RelativeBlobPath="$(_UploadPathRoot)/Runtime/$(_PackageVersion)/$(RepoProductVersionFileName)" />
87+
<ItemGroup>
88+
<Artifact Include="@(ProductVersionFile)"
89+
PublishFlatContainer="true"
90+
RelativeBlobPath="aspnetcore/Runtime/$(ProductVersion)/%(Filename)%(Extension)" />
9191
</ItemGroup>
9292
</Target>
9393

94-
<Target
95-
Name="_WriteProductVersionFile"
96-
Condition="'$(PublishInstallerBaseVersion)' == 'true'">
97-
<!--
98-
This target is defined in eng/targets/Packaging.targets and Npm.Common.targets and included in every C#, F#,
99-
and npm project. We use Microsoft.AspNetCore.InternalTesting.csproj because it is non-shipping (we need a non-stable
100-
version string to use as our publish location) non-packed (won't be shipped in the future).
101-
-->
102-
<MSBuild Projects="$(RepoRoot)src\Testing\src\Microsoft.AspNetCore.InternalTesting.csproj"
103-
Properties="ExcludeFromBuild=false"
104-
Targets="_GetPackageVersionInfo">
105-
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedProductVersionInfo" />
106-
</MSBuild>
107-
108-
<PropertyGroup>
109-
<_ProductVersion>%(_ResolvedProductVersionInfo.PackageVersion)</_ProductVersion>
110-
</PropertyGroup>
111-
112-
<!-- Generate productVersion.txt containing the value of $(PackageVersion) -->
113-
<WriteLinesToFile
114-
File="$(ProductVersionFileLocation)"
115-
Lines="$(_ProductVersion)"
116-
Overwrite="true"
117-
Encoding="ASCII" />
118-
<WriteLinesToFile
119-
File="$(RepoProductVersionFileLocation)"
120-
Lines="$(_ProductVersion)"
121-
Overwrite="true"
122-
Encoding="ASCII" />
94+
<Target Name="AddRelativeBlobPathToInstallerArtifacts"
95+
BeforeTargets="PublishToAzureDevOpsArtifacts"
96+
AfterTargets="GenerateChecksumsFromArtifacts"
97+
DependsOnTargets="GetProductVersion">
98+
<ItemGroup>
99+
<Artifact Condition="'%(Artifact.PublishFlatContainer)' == 'true' and '%(Artifact.UploadPathSegment)' != ''"
100+
RelativeBlobPath="aspnetcore/%(Artifact.UploadPathSegment)/$(ProductVersion)/%(Filename)%(Extension)" />
101+
</ItemGroup>
123102
</Target>
124103

125104
</Project>

eng/Version.Details.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -383,31 +383,31 @@
383383
<Uri>https://github.com/dotnet/winforms</Uri>
384384
<Sha>fd95fcd9771ffe9270c8c0280a2950e5434c250d</Sha>
385385
</Dependency>
386-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24168.5">
386+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24171.5">
387387
<Uri>https://github.com/dotnet/arcade</Uri>
388-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
388+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
389389
</Dependency>
390390
<!-- Intermediate is necessary for source build. -->
391-
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24168.5">
391+
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24171.5">
392392
<Uri>https://github.com/dotnet/arcade</Uri>
393-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
393+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
394394
<SourceBuild RepoName="arcade" ManagedOnly="true" />
395395
</Dependency>
396-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="9.0.0-beta.24168.5">
396+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="9.0.0-beta.24171.5">
397397
<Uri>https://github.com/dotnet/arcade</Uri>
398-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
398+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
399399
</Dependency>
400-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="9.0.0-beta.24168.5">
400+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="9.0.0-beta.24171.5">
401401
<Uri>https://github.com/dotnet/arcade</Uri>
402-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
402+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
403403
</Dependency>
404-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="9.0.0-beta.24168.5">
404+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="9.0.0-beta.24171.5">
405405
<Uri>https://github.com/dotnet/arcade</Uri>
406-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
406+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
407407
</Dependency>
408-
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="9.0.0-beta.24168.5">
408+
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="9.0.0-beta.24171.5">
409409
<Uri>https://github.com/dotnet/arcade</Uri>
410-
<Sha>777bc46bd883555cf89b8a68e3e2023fd4f1ee50</Sha>
410+
<Sha>742b88473823f1271366463ee9b57bea63677312</Sha>
411411
</Dependency>
412412
<Dependency Name="Microsoft.Extensions.Diagnostics.Testing" Version="9.0.0-preview.3.24163.5">
413413
<Uri>https://github.com/dotnet/extensions</Uri>

eng/Versions.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@
159159
<NuGetVersioningVersion>6.2.4</NuGetVersioningVersion>
160160
<NuGetFrameworksVersion>6.2.4</NuGetFrameworksVersion>
161161
<!-- Packages from dotnet/arcade -->
162-
<MicrosoftDotNetBuildTasksInstallersVersion>9.0.0-beta.24168.5</MicrosoftDotNetBuildTasksInstallersVersion>
163-
<MicrosoftDotNetBuildTasksTemplatingVersion>9.0.0-beta.24168.5</MicrosoftDotNetBuildTasksTemplatingVersion>
164-
<MicrosoftDotNetRemoteExecutorVersion>9.0.0-beta.24168.5</MicrosoftDotNetRemoteExecutorVersion>
165-
<MicrosoftSourceBuildIntermediatearcadeVersion>9.0.0-beta.24168.5</MicrosoftSourceBuildIntermediatearcadeVersion>
162+
<MicrosoftDotNetBuildTasksInstallersVersion>9.0.0-beta.24171.5</MicrosoftDotNetBuildTasksInstallersVersion>
163+
<MicrosoftDotNetBuildTasksTemplatingVersion>9.0.0-beta.24171.5</MicrosoftDotNetBuildTasksTemplatingVersion>
164+
<MicrosoftDotNetRemoteExecutorVersion>9.0.0-beta.24171.5</MicrosoftDotNetRemoteExecutorVersion>
165+
<MicrosoftSourceBuildIntermediatearcadeVersion>9.0.0-beta.24171.5</MicrosoftSourceBuildIntermediatearcadeVersion>
166166
<!-- Packages from dotnet/source-build-externals -->
167167
<MicrosoftSourceBuildIntermediatesourcebuildexternalsVersion>9.0.0-alpha.1.24162.1</MicrosoftSourceBuildIntermediatesourcebuildexternalsVersion>
168168
<!-- Packages from dotnet/source-build-reference-packages -->

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"jdk": "11.0.22"
2828
},
2929
"msbuild-sdks": {
30-
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24168.5",
31-
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24168.5"
30+
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24171.5",
31+
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24171.5"
3232
}
3333
}

0 commit comments

Comments
 (0)