Skip to content

Commit 9542bdb

Browse files
[main] Source code updates from dotnet/dotnet (#61929)
[main] Source code updates from dotnet/dotnet
1 parent a9e40df commit 9542bdb

File tree

10 files changed

+292
-295
lines changed

10 files changed

+292
-295
lines changed

eng/Version.Details.xml

Lines changed: 185 additions & 185 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 89 additions & 89 deletions
Large diffs are not rendered by default.

eng/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ $MSBuildArguments += "/p:Publish=$Publish"
282282
$MSBuildArguments += "/p:TargetArchitecture=$Architecture"
283283
$MSBuildArguments += "/p:TargetOsName=win"
284284

285-
$MSBuildArguments += "/p:DotNetBuildRepo=$ProductBuild"
285+
if ($ProductBuild) { $MSBuildArguments += "/p:DotNetBuildRepo=$ProductBuild" }
286286

287287
if (-not $Configuration) {
288288
$Configuration = if ($CI) { 'Release' } else { 'Debug' }
@@ -298,6 +298,7 @@ if ($RuntimeSourceFeed -or $RuntimeSourceFeedKey) {
298298
$ToolsetBuildArguments += $runtimeFeedArg
299299
$ToolsetBuildArguments += $runtimeFeedKeyArg
300300
}
301+
if ($ProductBuild) { $ToolsetBuildArguments += "/p:DotNetBuildRepo=$ProductBuild" }
301302

302303
# Split build categories between dotnet msbuild and desktop msbuild. Use desktop msbuild as little as possible.
303304
[string[]]$dotnetBuildArguments = ''

eng/build.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ target_arch='x64'
3535
configuration=''
3636
runtime_source_feed=''
3737
runtime_source_feed_key=''
38-
source_build=false
39-
product_build=false
38+
source_build=''
39+
product_build=''
4040

4141
if [ "$(uname)" = "Darwin" ]; then
4242
target_os_name='osx'
@@ -316,6 +316,8 @@ fi
316316
[ ! -z "$build_nodejs" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildNodeJSUnlessSourcebuild=$build_nodejs"
317317
[ ! -z "$build_managed" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildManaged=$build_managed"
318318
[ ! -z "$build_installers" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildInstallers=$build_installers"
319+
[ ! -z "$product_build" ] && msbuild_args[${#msbuild_args[*]}]="-p:DotNetBuildRepo=$product_build"
320+
[ ! -z "$source_build" ] && msbuild_args[${#msbuild_args[*]}]="-p:DotNetBuildSourceOnly=$source_build"
319321

320322
# Run restore by default unless --no-restore or --no-build was specified.
321323
[ -z "$run_restore" ] && run_restore=true
@@ -333,11 +335,6 @@ msbuild_args[${#msbuild_args[*]}]="-p:Sign=$run_sign"
333335
msbuild_args[${#msbuild_args[*]}]="-p:TargetArchitecture=$target_arch"
334336
msbuild_args[${#msbuild_args[*]}]="-p:TargetOsName=$target_os_name"
335337

336-
sourceBuildArg="/p:DotNetBuildSourceOnly=$source_build"
337-
productBuildArg="/p:DotNetBuildRepo=$product_build"
338-
msbuild_args[${#msbuild_args[*]}]=$sourceBuildArg
339-
msbuild_args[${#msbuild_args[*]}]=$productBuildArg
340-
341338
if [ -z "$configuration" ]; then
342339
if [ "$ci" = true ]; then
343340
configuration='Release'
@@ -350,13 +347,15 @@ msbuild_args[${#msbuild_args[*]}]="-p:Configuration=$configuration"
350347
# Set up additional runtime args
351348
toolset_build_args=()
352349
if [ ! -z "$runtime_source_feed$runtime_source_feed_key" ]; then
353-
runtimeFeedArg="/p:DotNetRuntimeSourceFeed=$runtime_source_feed"
354-
runtimeFeedKeyArg="/p:DotNetRuntimeSourceFeedKey=$runtime_source_feed_key"
350+
runtimeFeedArg="-p:DotNetRuntimeSourceFeed=$runtime_source_feed"
351+
runtimeFeedKeyArg="-p:DotNetRuntimeSourceFeedKey=$runtime_source_feed_key"
355352
msbuild_args[${#msbuild_args[*]}]=$runtimeFeedArg
356353
msbuild_args[${#msbuild_args[*]}]=$runtimeFeedKeyArg
357354
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedArg
358355
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedKeyArg
359356
fi
357+
[ ! -z "$product_build" ] && toolset_build_args[${#toolset_build_args[*]}]="-p:DotNetBuildRepo=$product_build"
358+
[ ! -z "$source_build" ] && toolset_build_args[${#toolset_build_args[*]}]="-p:DotNetBuildSourceOnly=$source_build"
360359

361360
# Initialize global variables need to be set before the import of Arcade is imported
362361
restore=$run_restore

eng/common/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ while [[ $# > 0 ]]; do
136136
restore=true
137137
pack=true
138138
;;
139-
-productBuild|-pb)
139+
-productbuild|-pb)
140140
build=true
141141
product_build=true
142142
restore=true

eng/common/core-templates/steps/source-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ steps:
5151
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
5252
--configuration $buildConfig \
5353
--restore --build --pack -bl \
54+
--source-build \
5455
${{ parameters.platform.buildArguments }} \
5556
$internalRuntimeDownloadArgs \
5657
$targetRidArgs \
5758
$baseRidArgs \
5859
$portableBuildArgs \
59-
/p:DotNetBuildSourceOnly=true \
60-
/p:DotNetBuildRepo=true \
6160
displayName: Build
6261

6362
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml

eng/common/darc-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function InstallDarcCli {
6868
fi
6969
fi
7070

71-
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
71+
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"
7272

7373
echo "Installing Darc CLI version $darcVersion..."
7474
echo "You may need to restart your command shell if this is the first dotnet tool you have installed."

eng/common/tools.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ $ErrorActionPreference = 'Stop'
6868
# True if the build is a product build
6969
[bool]$productBuild = if (Test-Path variable:productBuild) { $productBuild } else { $false }
7070

71-
[String[]]$properties = if (Test-Path variable:properties) { $properties } else { @() }
72-
7371
function Create-Directory ([string[]] $path) {
7472
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
7573
}
@@ -853,7 +851,7 @@ function MSBuild-Core() {
853851

854852
# When running on Azure Pipelines, override the returned exit code to avoid double logging.
855853
# Skip this when the build is a child of the VMR orchestrator build.
856-
if ($ci -and $env:SYSTEM_TEAMPROJECT -ne $null -and !$productBuild -and -not($properties -like "*DotNetBuildRepo=true*")) {
854+
if ($ci -and $env:SYSTEM_TEAMPROJECT -ne $null -and !$productBuild) {
857855
Write-PipelineSetResult -Result "Failed" -Message "msbuild execution failed."
858856
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
859857
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error

eng/common/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function MSBuild-Core {
507507

508508
# When running on Azure Pipelines, override the returned exit code to avoid double logging.
509509
# Skip this when the build is a child of the VMR orchestrator build.
510-
if [[ "$ci" == true && -n ${SYSTEM_TEAMPROJECT:-} && "$product_build" != true && "$properties" != *"DotNetBuildRepo=true"* ]]; then
510+
if [[ "$ci" == true && -n ${SYSTEM_TEAMPROJECT:-} && "$product_build" != true ]]; then
511511
Write-PipelineSetResult -result "Failed" -message "msbuild execution failed."
512512
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
513513
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"jdk": "latest"
2828
},
2929
"msbuild-sdks": {
30-
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25260.104",
31-
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25260.104",
32-
"Microsoft.DotNet.SharedFramework.Sdk": "10.0.0-beta.25260.104",
30+
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25265.101",
31+
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25265.101",
32+
"Microsoft.DotNet.SharedFramework.Sdk": "10.0.0-beta.25265.101",
3333
"Microsoft.Build.NoTargets": "3.7.0",
3434
"Microsoft.Build.Traversal": "3.4.0"
3535
}

0 commit comments

Comments
 (0)