Skip to content

Commit dd5d990

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20210308.9 (#30809)
[release/3.1] Update dependencies from dotnet/arcade
1 parent d16a305 commit dd5d990

File tree

8 files changed

+144
-93
lines changed

8 files changed

+144
-93
lines changed

NuGet.config

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@
44
<clear />
55
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
66
<!-- Begin: Package sources from dotnet-aspnetcore-tooling -->
7-
<add key="darc-int-dotnet-aspnetcore-tooling-1756aa6" value="https://pkgs.dev.azure.com/dnceng/_packaging/darc-int-dotnet-aspnetcore-tooling-1756aa62/nuget/v3/index.json" />
87
<!-- End: Package sources from dotnet-aspnetcore-tooling -->
98
<!-- Begin: Package sources from dotnet-corefx -->
10-
<add key="darc-int-dotnet-corefx-9299d90" value="https://pkgs.dev.azure.com/dnceng/_packaging/darc-int-dotnet-corefx-9299d909/nuget/v3/index.json" />
119
<!-- End: Package sources from dotnet-corefx -->
1210
<!-- Begin: Package sources from dotnet-core-setup -->
13-
<add key="darc-int-dotnet-core-setup-64df28e" value="https://pkgs.dev.azure.com/dnceng/_packaging/darc-int-dotnet-core-setup-64df28ec/nuget/v3/index.json" />
1411
<!-- End: Package sources from dotnet-core-setup -->
1512
<!-- Begin: Package sources from dotnet-efcore -->
16-
<add key="darc-int-dotnet-efcore-5b7fc58" value="https://pkgs.dev.azure.com/dnceng/_packaging/darc-int-dotnet-efcore-5b7fc584/nuget/v3/index.json" />
1713
<!-- End: Package sources from dotnet-efcore -->
1814
<!-- Begin: Package sources from dotnet-extensions -->
19-
<add key="darc-int-dotnet-extensions-945dd07" value="https://pkgs.dev.azure.com/dnceng/_packaging/darc-int-dotnet-extensions-945dd07f/nuget/v3/index.json" />
2015
<!-- End: Package sources from dotnet-extensions -->
2116
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2217
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
@@ -29,7 +24,6 @@
2924
<clear />
3025
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
3126
<!-- Begin: Package sources from dotnet-extensions -->
32-
<add key="darc-int-dotnet-extensions-945dd07" value="true" />
3327
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
3428
<add key="darc-int-dotnet-extensions-4210e7d" value="true" />
3529
<add key="darc-int-dotnet-extensions-4210e7d" value="true" />

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,17 +418,17 @@
418418
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-extensions</Uri>
419419
<Sha>945dd07ff3fabf64fe67e7dd2197bbeedbe6ca0f</Sha>
420420
</Dependency>
421-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.21110.10">
421+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.21158.9">
422422
<Uri>https://github.com/dotnet/arcade</Uri>
423-
<Sha>251249a04a9686ca2660e2acaa3094446a48f10d</Sha>
423+
<Sha>ab42d248928f65dd174a2383f3256e68d9379bb7</Sha>
424424
</Dependency>
425-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.21110.10">
425+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.21158.9">
426426
<Uri>https://github.com/dotnet/arcade</Uri>
427-
<Sha>251249a04a9686ca2660e2acaa3094446a48f10d</Sha>
427+
<Sha>ab42d248928f65dd174a2383f3256e68d9379bb7</Sha>
428428
</Dependency>
429-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.21110.10">
429+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.21158.9">
430430
<Uri>https://github.com/dotnet/arcade</Uri>
431-
<Sha>251249a04a9686ca2660e2acaa3094446a48f10d</Sha>
431+
<Sha>ab42d248928f65dd174a2383f3256e68d9379bb7</Sha>
432432
</Dependency>
433433
<Dependency Name="Microsoft.AspNetCore.Testing" Version="3.1.13-servicing.21116.4" CoherentParentDependency="Microsoft.EntityFrameworkCore">
434434
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-extensions</Uri>

eng/Versions.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<AspNetCoreMinorVersion>1</AspNetCoreMinorVersion>
1111
<AspNetCorePatchVersion>14</AspNetCorePatchVersion>
1212
<ValidateBaseline>true</ValidateBaseline>
13-
1413
<PreReleasePreviewNumber>0</PreReleasePreviewNumber>
1514
<ComponentsWebAssemblyMajorVersion>3</ComponentsWebAssemblyMajorVersion>
1615
<ComponentsWebAssemblyMinorVersion>2</ComponentsWebAssemblyMinorVersion>
@@ -64,7 +63,7 @@
6463
-->
6564
<PropertyGroup Label="Automated">
6665
<!-- Packages from dotnet/arcade -->
67-
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.21110.10</MicrosoftDotNetGenAPIPackageVersion>
66+
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.21158.9</MicrosoftDotNetGenAPIPackageVersion>
6867
<!-- Packages from dotnet/roslyn -->
6968
<MicrosoftNetCompilersToolsetPackageVersion>3.4.1-beta4-20127-10</MicrosoftNetCompilersToolsetPackageVersion>
7069
<!-- Packages from dotnet/core-setup -->

eng/common/build.ps1

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,44 @@ Param(
2222
[switch] $ci,
2323
[switch] $prepareMachine,
2424
[switch] $help,
25+
[string] $runtimeSourceFeed = "",
26+
[string] $runtimeSourceFeedKey = "",
2527
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
2628
)
2729

2830
. $PSScriptRoot\tools.ps1
2931

3032
function Print-Usage() {
3133
Write-Host "Common settings:"
32-
Write-Host " -configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
33-
Write-Host " -platform <value> Platform configuration: 'x86', 'x64' or any valid Platform value to pass to msbuild"
34-
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
35-
Write-Host " -binaryLog Output binary log (short: -bl)"
36-
Write-Host " -help Print help and exit"
34+
Write-Host " -configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
35+
Write-Host " -platform <value> Platform configuration: 'x86', 'x64' or any valid Platform value to pass to msbuild"
36+
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
37+
Write-Host " -binaryLog Output binary log (short: -bl)"
38+
Write-Host " -help Print help and exit"
3739
Write-Host ""
3840

3941
Write-Host "Actions:"
40-
Write-Host " -restore Restore dependencies (short: -r)"
41-
Write-Host " -build Build solution (short: -b)"
42-
Write-Host " -rebuild Rebuild solution"
43-
Write-Host " -deploy Deploy built VSIXes"
44-
Write-Host " -deployDeps Deploy dependencies (e.g. VSIXes for integration tests)"
45-
Write-Host " -test Run all unit tests in the solution (short: -t)"
46-
Write-Host " -integrationTest Run all integration tests in the solution"
47-
Write-Host " -performanceTest Run all performance tests in the solution"
48-
Write-Host " -pack Package build outputs into NuGet packages and Willow components"
49-
Write-Host " -sign Sign build outputs"
50-
Write-Host " -publish Publish artifacts (e.g. symbols)"
42+
Write-Host " -restore Restore dependencies (short: -r)"
43+
Write-Host " -build Build solution (short: -b)"
44+
Write-Host " -rebuild Rebuild solution"
45+
Write-Host " -deploy Deploy built VSIXes"
46+
Write-Host " -deployDeps Deploy dependencies (e.g. VSIXes for integration tests)"
47+
Write-Host " -test Run all unit tests in the solution (short: -t)"
48+
Write-Host " -integrationTest Run all integration tests in the solution"
49+
Write-Host " -performanceTest Run all performance tests in the solution"
50+
Write-Host " -pack Package build outputs into NuGet packages and Willow components"
51+
Write-Host " -sign Sign build outputs"
52+
Write-Host " -publish Publish artifacts (e.g. symbols)"
5153
Write-Host ""
5254

5355
Write-Host "Advanced settings:"
54-
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
55-
Write-Host " -ci Set when running on CI server"
56-
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
57-
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
58-
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
56+
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
57+
Write-Host " -ci Set when running on CI server"
58+
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
59+
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
60+
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
61+
Write-Host " -runtimeSourceFeed <value> Alternate feed source for restoring .NET Runtimes and SDKs"
62+
Write-Host " -runtimeSourceFeedKey <value> Key value for non-public values of runtimeSourceFeed"
5963
Write-Host ""
6064

6165
Write-Host "Command line arguments not listed above are passed thru to msbuild."
@@ -75,7 +79,7 @@ function InitializeCustomToolset {
7579
}
7680

7781
function Build {
78-
$toolsetBuildProj = InitializeToolset
82+
$toolsetBuildProj = InitializeToolset -runtimeSourceFeed $runtimeSourceFeed -runtimeSourceFeedKey $runtimeSourceFeedKey
7983
InitializeCustomToolset
8084

8185
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }

eng/common/build.sh

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ usage()
2929
echo ""
3030

3131
echo "Advanced settings:"
32-
echo " --projects <value> Project or solution file(s) to build"
33-
echo " --ci Set when running on CI server"
34-
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
35-
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
36-
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
32+
echo " --projects <value> Project or solution file(s) to build"
33+
echo " --ci Set when running on CI server"
34+
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
35+
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
36+
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
37+
echo " --runtimeSourceFeed <value> Alternate (fallback) source for .NET Runtime and SDK installation"
38+
echo " --runtimeSourceFeedKey <value> Credentials (if needed) for authenticating to runtimeSourceFeed"
39+
3740
echo ""
3841
echo "Command line arguments not listed above are passed thru to msbuild."
3942
echo "Arguments can also be passed in with a single hyphen."
@@ -73,6 +76,9 @@ configuration='Debug'
7376
prepare_machine=false
7477
verbosity='minimal'
7578

79+
runtimeSourceFeed=''
80+
runtimeSourceFeedKey=''
81+
7682
properties=''
7783

7884
while [[ $# > 0 ]]; do
@@ -141,6 +147,14 @@ while [[ $# > 0 ]]; do
141147
node_reuse=$2
142148
shift
143149
;;
150+
-runtimesourcefeed)
151+
shift
152+
runtimeSourceFeed="$1"
153+
;;
154+
-runtimesourcefeedkey)
155+
shift
156+
runtimeSourceFeedKey="$1"
157+
;;
144158
*)
145159
properties="$properties $1"
146160
;;
@@ -166,7 +180,7 @@ function InitializeCustomToolset {
166180
}
167181

168182
function Build {
169-
InitializeToolset
183+
InitializeToolset $runtimeSourceFeed $runtimeSourceFeedKey
170184
InitializeCustomToolset
171185

172186
if [[ ! -z "$projects" ]]; then

eng/common/tools.ps1

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function Exec-Process([string]$command, [string]$commandArgs) {
9696
}
9797
}
9898

99-
function InitializeDotNetCli([bool]$install) {
99+
function InitializeDotNetCli([bool]$install, [string] $runtimeSourceFeed, [string] $runtimeSourceFeedKey) {
100100
if (Test-Path variable:global:_DotNetInstallDir) {
101101
return $global:_DotNetInstallDir
102102
}
@@ -138,7 +138,7 @@ function InitializeDotNetCli([bool]$install) {
138138

139139
if (-not (Test-Path(Join-Path $dotnetRoot "sdk\$dotnetSdkVersion"))) {
140140
if ($install) {
141-
InstallDotNetSdk $dotnetRoot $dotnetSdkVersion
141+
InstallDotNetSdk -dotnetRoot $dotnetRoot -version $dotnetSdkVersion -runtimeSourceFeed $runtimeSourceFeed -runtimeSourceFeedKey $runtimeSourceFeedKey
142142
} else {
143143
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Unable to find dotnet with SDK version '$dotnetSdkVersion'"
144144
ExitWithExitCode 1
@@ -207,8 +207,8 @@ function GetDotNetInstallScript([string] $dotnetRoot) {
207207
return $installScript
208208
}
209209

210-
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = "") {
211-
InstallDotNet $dotnetRoot $version $architecture
210+
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtimeSourceFeed, [string] $runtimeSourceFeedKey ) {
211+
InstallDotNet -dotnetRoot $dotnetRoot -version $version -architecture $architecture -skipNonVersionedFiles $false -runtimeSourceFeed $runtimeSourceFeed -runtimeSourceFeedKey $runtimeSourceFeedKey
212212
}
213213

214214
function InstallDotNet([string] $dotnetRoot,
@@ -233,10 +233,9 @@ function InstallDotNet([string] $dotnetRoot,
233233
& $installScript @installParameters
234234
}
235235
catch {
236-
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Failed to install dotnet runtime '$runtime' from public location."
237-
238-
# Only the runtime can be installed from a custom [private] location.
239-
if ($runtime -and ($runtimeSourceFeed -or $runtimeSourceFeedKey)) {
236+
# If we fail, retry from a custom (possibly private) location.
237+
if ($runtimeSourceFeed -or $runtimeSourceFeedKey) {
238+
Write-Host "Failed to install dotnet runtime '$runtime' version '$version' from public location; trying specified alternate feed credentials"
240239
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
241240

242241
if ($runtimeSourceFeedKey) {
@@ -253,6 +252,7 @@ function InstallDotNet([string] $dotnetRoot,
253252
ExitWithExitCode 1
254253
}
255254
} else {
255+
Write-PipelineTelemetryError -Category "InitializeToolset" -Message "Failed to install dotnet runtime '$runtime' version '$version' from public location."
256256
ExitWithExitCode 1
257257
}
258258
}
@@ -439,7 +439,7 @@ function LocateVisualStudio([object]$vsRequirements = $null){
439439
return $vsInfo[0]
440440
}
441441

442-
function InitializeBuildTool() {
442+
function InitializeBuildTool([string] $runtimeSourceFeed, [string] $runtimeSourceFeedKey) {
443443
if (Test-Path variable:global:_BuildTool) {
444444
return $global:_BuildTool
445445
}
@@ -451,7 +451,7 @@ function InitializeBuildTool() {
451451
# Initialize dotnet cli if listed in 'tools'
452452
$dotnetRoot = $null
453453
if (Get-Member -InputObject $GlobalJson.tools -Name "dotnet") {
454-
$dotnetRoot = InitializeDotNetCli -install:$restore
454+
$dotnetRoot = InitializeDotNetCli -install:$restore -runtimeSourceFeed $runtimeSourceFeed -runtimeSourceFeedKey $runtimeSourceFeedKey
455455
}
456456

457457
if ($msbuildEngine -eq "dotnet") {
@@ -523,7 +523,8 @@ function InitializeNativeTools() {
523523
}
524524
}
525525

526-
function InitializeToolset() {
526+
function InitializeToolset([string] $runtimeSourceFeed, [string] $runtimeSourceFeedKey)
527+
{
527528
if (Test-Path variable:global:_ToolsetBuildProj) {
528529
return $global:_ToolsetBuildProj
529530
}
@@ -545,7 +546,7 @@ function InitializeToolset() {
545546
ExitWithExitCode 1
546547
}
547548

548-
$buildTool = InitializeBuildTool
549+
$buildTool = InitializeBuildTool -runtimeSourceFeed $runtimeSourceFeed -runtimeSourceFeedKey $runtimeSourceFeedKey
549550

550551
$proj = Join-Path $ToolsetDir "restore.proj"
551552
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "ToolsetRestore.binlog") } else { "" }

0 commit comments

Comments
 (0)