Skip to content

Commit 5844add

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20250321.1 (#10614)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.Helix.Sdk From Version 10.0.0-beta.25164.6 -> To Version 10.0.0-beta.25171.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent b6914d7 commit 5844add

File tree

7 files changed

+60
-18
lines changed

7 files changed

+60
-18
lines changed

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,25 +165,25 @@
165165
</Dependency>
166166
</ProductDependencies>
167167
<ToolsetDependencies>
168-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25164.6">
168+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25171.1">
169169
<Uri>https://github.com/dotnet/arcade</Uri>
170-
<Sha>1912d9f4fc410d421a01b5a09131aae234b603fa</Sha>
170+
<Sha>235443a5c1136571cacdfd40576f263f26bf5b9b</Sha>
171171
</Dependency>
172-
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.25164.6">
172+
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.25171.1">
173173
<Uri>https://github.com/dotnet/arcade</Uri>
174-
<Sha>1912d9f4fc410d421a01b5a09131aae234b603fa</Sha>
174+
<Sha>235443a5c1136571cacdfd40576f263f26bf5b9b</Sha>
175175
</Dependency>
176-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25164.6">
176+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25171.1">
177177
<Uri>https://github.com/dotnet/arcade</Uri>
178-
<Sha>1912d9f4fc410d421a01b5a09131aae234b603fa</Sha>
178+
<Sha>235443a5c1136571cacdfd40576f263f26bf5b9b</Sha>
179179
</Dependency>
180180
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="9.0.0-beta.24053.1">
181181
<Uri>https://github.com/dotnet/arcade</Uri>
182182
<Sha>f4e11a15c7b8a949d4a366e792a9843ff6e88cd5</Sha>
183183
</Dependency>
184-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="10.0.0-beta.25164.6">
184+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="10.0.0-beta.25171.1">
185185
<Uri>https://github.com/dotnet/arcade</Uri>
186-
<Sha>1912d9f4fc410d421a01b5a09131aae234b603fa</Sha>
186+
<Sha>235443a5c1136571cacdfd40576f263f26bf5b9b</Sha>
187187
</Dependency>
188188
<Dependency Name="Microsoft.SourceLink.AzureRepos.Git" Version="8.0.0-beta.23409.2">
189189
<Uri>https://github.com/dotnet/sourcelink</Uri>

eng/common/CIBuild.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"

eng/common/build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Param(
77
[string] $msbuildEngine = $null,
88
[bool] $warnAsError = $true,
99
[bool] $nodeReuse = $true,
10+
[switch] $buildCheck = $false,
1011
[switch][Alias('r')]$restore,
1112
[switch] $deployDeps,
1213
[switch][Alias('b')]$build,
@@ -71,6 +72,8 @@ function Print-Usage() {
7172
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
7273
Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio"
7374
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"
75+
Write-Host " -nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
76+
Write-Host " -buildCheck Sets /check msbuild parameter"
7477
Write-Host ""
7578

7679
Write-Host "Command line arguments not listed above are passed thru to msbuild."
@@ -97,6 +100,7 @@ function Build {
97100

98101
$bl = if ($binaryLog) { '/bl:' + (Join-Path $LogDir 'Build.binlog') } else { '' }
99102
$platformArg = if ($platform) { "/p:Platform=$platform" } else { '' }
103+
$check = if ($buildCheck) { '/check' } else { '' }
100104

101105
if ($projects) {
102106
# Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
@@ -113,6 +117,7 @@ function Build {
113117
MSBuild $toolsetBuildProj `
114118
$bl `
115119
$platformArg `
120+
$check `
116121
/p:Configuration=$configuration `
117122
/p:RepoRoot=$RepoRoot `
118123
/p:Restore=$restore `
@@ -166,4 +171,4 @@ catch {
166171
ExitWithExitCode 1
167172
}
168173

169-
ExitWithExitCode 0
174+
ExitWithExitCode 0

eng/common/build.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ usage()
4242
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
4343
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
4444
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
45+
echo " --buildCheck <value> Sets /check msbuild parameter"
4546
echo ""
4647
echo "Command line arguments not listed above are passed thru to msbuild."
4748
echo "Arguments can also be passed in with a single hyphen."
@@ -76,6 +77,7 @@ clean=false
7677

7778
warn_as_error=true
7879
node_reuse=true
80+
build_check=false
7981
binary_log=false
8082
exclude_ci_binary_log=false
8183
pipelines_log=false
@@ -173,6 +175,9 @@ while [[ $# > 0 ]]; do
173175
node_reuse=$2
174176
shift
175177
;;
178+
-buildcheck)
179+
build_check=true
180+
;;
176181
-runtimesourcefeed)
177182
runtime_source_feed=$2
178183
shift
@@ -224,8 +229,14 @@ function Build {
224229
bl="/bl:\"$log_dir/Build.binlog\""
225230
fi
226231

232+
local check=""
233+
if [[ "$build_check" == true ]]; then
234+
check="/check"
235+
fi
236+
227237
MSBuild $_InitializeToolset \
228238
$bl \
239+
$check \
229240
/p:Configuration=$configuration \
230241
/p:RepoRoot="$repo_root" \
231242
/p:Restore=$restore \
@@ -256,4 +267,4 @@ if [[ "$restore" == true ]]; then
256267
InitializeNativeTools
257268
fi
258269

259-
Build
270+
Build

eng/common/cibuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ while [[ -h $source ]]; do
1313
done
1414
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
1515

16-
. "$scriptroot/build.sh" --restore --build --test --pack --publish --ci $@
16+
. "$scriptroot/build.sh" --restore --build --test --pack --publish --ci $@

eng/common/core-templates/steps/install-microbuild.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parameters:
55
# Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT'
66
enableMicrobuildForMacAndLinux: false
77
# Location of the MicroBuild output folder
8-
microBuildOutputFolder: '$(Agent.TempDirectory)'
8+
microBuildOutputFolder: '$(Build.SourcesDirectory)'
99
continueOnError: false
1010

1111
steps:
@@ -41,7 +41,7 @@ steps:
4141
inputs:
4242
packageType: sdk
4343
version: 8.0.x
44-
installationPath: ${{ parameters.microBuildOutputFolder }}/dotnet
44+
installationPath: ${{ parameters.microBuildOutputFolder }}/.dotnet
4545
workingDirectory: ${{ parameters.microBuildOutputFolder }}
4646
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
4747

@@ -53,6 +53,7 @@ steps:
5353
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
5454
${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:
5555
azureSubscription: 'MicroBuild Signing Task (DevDiv)'
56+
useEsrpCli: true
5657
env:
5758
TeamName: $(_TeamName)
5859
MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }}
@@ -71,3 +72,28 @@ steps:
7172
eq(variables['_SignType'], 'real')
7273
)
7374
))
75+
76+
# Workaround for ESRP CLI on Linux - https://github.com/dotnet/source-build/issues/4964
77+
- ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:
78+
- task: UseDotNet@2
79+
displayName: Install .NET 9.0 SDK for ESRP CLI Workaround
80+
inputs:
81+
packageType: sdk
82+
version: 9.0.x
83+
installationPath: ${{ parameters.microBuildOutputFolder }}/.dotnet
84+
workingDirectory: ${{ parameters.microBuildOutputFolder }}
85+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
86+
87+
- task: PowerShell@2
88+
displayName: Workaround for ESRP CLI on Linux
89+
inputs:
90+
targetType: 'inline'
91+
script: |
92+
Write-Host "Copying Linux Path"
93+
$MBSIGN_APPFOLDER = '$(MBSIGN_APPFOLDER)'
94+
$MBSIGN_APPFOLDER = $MBSIGN_APPFOLDER -replace '/build', ''
95+
$MBSIGN_APPFOLDER = $MBSIGN_APPFOLDER + '/1.1.1032' + '/build'
96+
$MBSIGN_APPFOLDER | Write-Host
97+
$SignConfigPath = $MBSIGN_APPFOLDER + '/signconfig.xml'
98+
Copy-Item -Path "$(MBSIGN_APPFOLDER)/signconfig.xml" -Destination $SignConfigPath -Force
99+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "10.0.100-preview.3.25125.5",
3+
"dotnet": "10.0.100-preview.3.25167.3",
44
"runtimes": {
55
"dotnet/x64": [
66
"$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"
@@ -14,12 +14,12 @@
1414
}
1515
},
1616
"msbuild-sdks": {
17-
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25164.6",
18-
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25164.6",
17+
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25171.1",
18+
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25171.1",
1919
"Microsoft.Build.NoTargets": "3.7.56"
2020
},
2121
"sdk": {
22-
"version": "10.0.100-preview.3.25125.5"
22+
"version": "10.0.100-preview.3.25167.3"
2323
},
2424
"native-tools": {
2525
"strawberry-perl": "5.38.0.1",

0 commit comments

Comments
 (0)