Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 24e96f7

Browse files
committed
Revert "Update dependencies from https://github.com/dotnet/arcade build 20190530.2 (#24882)" (#24898)
This reverts commit aa26688.
1 parent 4f9d411 commit 24e96f7

File tree

7 files changed

+40
-243
lines changed

7 files changed

+40
-243
lines changed

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19280.2">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19279.5">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
8+
<Sha>fb62c6377a6bd163af2a7516260f064498942585</Sha>
99
</Dependency>
10-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19280.2">
10+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19279.5">
1111
<Uri>https://github.com/dotnet/arcade</Uri>
12-
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
12+
<Sha>fb62c6377a6bd163af2a7516260f064498942585</Sha>
1313
</Dependency>
14-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19280.2">
14+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19279.5">
1515
<Uri>https://github.com/dotnet/arcade</Uri>
16-
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
16+
<Sha>fb62c6377a6bd163af2a7516260f064498942585</Sha>
1717
</Dependency>
18-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19280.2">
18+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19279.5">
1919
<Uri>https://github.com/dotnet/arcade</Uri>
20-
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
20+
<Sha>fb62c6377a6bd163af2a7516260f064498942585</Sha>
2121
</Dependency>
2222
<Dependency Name="Microsoft.Private.CoreFx.NETCoreApp" Version="4.6.0-preview6.19279.8">
2323
<Uri>https://github.com/dotnet/corefx</Uri>

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<UsingToolXliff>false</UsingToolXliff>
1515
<!-- Package versions -->
1616
<!-- arcade -->
17-
<MicrosoftDotNetBuildTasksFeedVersion>2.2.0-beta.19280.2</MicrosoftDotNetBuildTasksFeedVersion>
18-
<MicrosoftDotNetBuildTasksPackagingVersion>1.0.0-beta.19280.2</MicrosoftDotNetBuildTasksPackagingVersion>
17+
<MicrosoftDotNetBuildTasksFeedVersion>2.2.0-beta.19279.5</MicrosoftDotNetBuildTasksFeedVersion>
18+
<MicrosoftDotNetBuildTasksPackagingVersion>1.0.0-beta.19279.5</MicrosoftDotNetBuildTasksPackagingVersion>
1919
<MicrosoftDotNetXUnitConsoleRunnerVersion>2.5.1-beta.19278.1</MicrosoftDotNetXUnitConsoleRunnerVersion>
2020
<!-- corefx -->
2121
<MicrosoftPrivateCoreFxNETCoreAppVersion>4.6.0-preview6.19279.8</MicrosoftPrivateCoreFxNETCoreAppVersion>

eng/common/LoggingCommandFunctions.ps1

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

eng/common/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ try {
133133
Build
134134
}
135135
catch {
136+
Write-Host $_
137+
Write-Host $_.Exception
136138
Write-Host $_.ScriptStackTrace
137-
Write-PipelineTaskError -Message $_
138139
ExitWithExitCode 1
139140
}
140141

eng/common/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ if [[ -n "${useInstalledDotNetCli:-}" ]]; then
209209
use_installed_dotnet_cli="$useInstalledDotNetCli"
210210
fi
211211

212-
if [[ "$restore" == true && -z ${DisableNativeToolsetInstalls:-} ]]; then
213-
InitializeNativeTools
214-
fi
212+
# Workaround for https://github.com/dotnet/arcade/issues/2673
213+
# if [[ "$restore" == true && -z ${DisableNativeToolsetInstalls:-} ]]; then
214+
# InitializeNativeTools
215+
# fi
215216

216217
Build

eng/common/tools.ps1

Lines changed: 22 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -92,68 +92,6 @@ function Exec-Process([string]$command, [string]$commandArgs) {
9292
}
9393
}
9494

95-
function Write-PipelineTaskError {
96-
[CmdletBinding()]
97-
param(
98-
[Parameter(Mandatory = $true)]
99-
[string]$Message,
100-
[Parameter(Mandatory = $false)]
101-
[string]$Type = 'error',
102-
[string]$ErrCode,
103-
[string]$SourcePath,
104-
[string]$LineNumber,
105-
[string]$ColumnNumber,
106-
[switch]$AsOutput)
107-
108-
if(!$ci) {
109-
if($Type -eq 'error') {
110-
Write-Error $Message
111-
return
112-
}
113-
elseif ($Type -eq 'warning') {
114-
Write-Warning $Message
115-
return
116-
}
117-
}
118-
119-
if(($Type -ne 'error') -and ($Type -ne 'warning')) {
120-
Write-Host $Message
121-
return
122-
}
123-
if(-not $PSBoundParameters.ContainsKey('Type')) {
124-
$PSBoundParameters.Add('Type', 'error')
125-
}
126-
Write-LogIssue @PSBoundParameters
127-
}
128-
129-
function Write-PipelineSetVariable {
130-
[CmdletBinding()]
131-
param(
132-
[Parameter(Mandatory = $true)]
133-
[string]$Name,
134-
[string]$Value,
135-
[switch]$Secret,
136-
[switch]$AsOutput)
137-
138-
if($ci) {
139-
Write-LoggingCommand -Area 'task' -Event 'setvariable' -Data $Value -Properties @{
140-
'variable' = $Name
141-
'issecret' = $Secret
142-
} -AsOutput:$AsOutput
143-
}
144-
}
145-
146-
function Write-PipelinePrependPath {
147-
[CmdletBinding()]
148-
param(
149-
[Parameter(Mandatory=$true)]
150-
[string]$Path,
151-
[switch]$AsOutput)
152-
if($ci) {
153-
Write-LoggingCommand -Area 'task' -Event 'prependpath' -Data $Path -AsOutput:$AsOutput
154-
}
155-
}
156-
15795
function InitializeDotNetCli([bool]$install) {
15896
if (Test-Path variable:global:_DotNetInstallDir) {
15997
return $global:_DotNetInstallDir
@@ -196,7 +134,7 @@ function InitializeDotNetCli([bool]$install) {
196134
if ($install) {
197135
InstallDotNetSdk $dotnetRoot $dotnetSdkVersion
198136
} else {
199-
Write-PipelineTaskError "Unable to find dotnet with SDK version '$dotnetSdkVersion'"
137+
Write-Host "Unable to find dotnet with SDK version '$dotnetSdkVersion'" -ForegroundColor Red
200138
ExitWithExitCode 1
201139
}
202140
}
@@ -209,10 +147,12 @@ function InitializeDotNetCli([bool]$install) {
209147
# It also ensures that VS msbuild will use the downloaded sdk targets.
210148
$env:PATH = "$dotnetRoot;$env:PATH"
211149

212-
# Make Sure that our bootstrapped dotnet cli is avaliable in future steps of the Azure Pipelines build
213-
Write-PipelinePrependPath -Path $dotnetRoot
214-
Write-PipelineSetVariable -Name 'DOTNET_MULTILEVEL_LOOKUP' -Value '0'
215-
Write-PipelineSetVariable -Name 'DOTNET_SKIP_FIRST_TIME_EXPERIENCE' -Value '1'
150+
if ($ci) {
151+
# Make Sure that our bootstrapped dotnet cli is avaliable in future steps of the Azure Pipelines build
152+
Write-Host "##vso[task.prependpath]$dotnetRoot"
153+
Write-Host "##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP]0"
154+
Write-Host "##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE]1"
155+
}
216156

217157
return $global:_DotNetInstallDir = $dotnetRoot
218158
}
@@ -244,7 +184,7 @@ function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $archit
244184

245185
& $installScript @installParameters
246186
if ($lastExitCode -ne 0) {
247-
Write-PipelineTaskError -Message "Failed to install dotnet cli (exit code '$lastExitCode')."
187+
Write-Host "Failed to install dotnet cli (exit code '$lastExitCode')." -ForegroundColor Red
248188
ExitWithExitCode $lastExitCode
249189
}
250190
}
@@ -418,7 +358,7 @@ function InitializeBuildTool() {
418358

419359
if ($msbuildEngine -eq "dotnet") {
420360
if (!$dotnetRoot) {
421-
Write-PipelineTaskError "/global.json must specify 'tools.dotnet'."
361+
Write-Host "/global.json must specify 'tools.dotnet'." -ForegroundColor Red
422362
ExitWithExitCode 1
423363
}
424364

@@ -427,13 +367,13 @@ function InitializeBuildTool() {
427367
try {
428368
$msbuildPath = InitializeVisualStudioMSBuild -install:$restore
429369
} catch {
430-
Write-PipelineTaskError $_
370+
Write-Host $_ -ForegroundColor Red
431371
ExitWithExitCode 1
432372
}
433373

434374
$buildTool = @{ Path = $msbuildPath; Command = ""; Tool = "vs"; Framework = "net472" }
435375
} else {
436-
Write-PipelineTaskError "Unexpected value of -msbuildEngine: '$msbuildEngine'."
376+
Write-Host "Unexpected value of -msbuildEngine: '$msbuildEngine'." -ForegroundColor Red
437377
ExitWithExitCode 1
438378
}
439379

@@ -450,7 +390,7 @@ function GetDefaultMSBuildEngine() {
450390
return "dotnet"
451391
}
452392

453-
Write-PipelineTaskError "-msbuildEngine must be specified, or /global.json must specify 'tools.dotnet' or 'tools.vs'."
393+
Write-Host "-msbuildEngine must be specified, or /global.json must specify 'tools.dotnet' or 'tools.vs'." -ForegroundColor Red
454394
ExitWithExitCode 1
455395
}
456396

@@ -501,7 +441,7 @@ function InitializeToolset() {
501441
}
502442

503443
if (-not $restore) {
504-
Write-PipelineTaskError "Toolset version $toolsetVersion has not been restored."
444+
Write-Host "Toolset version $toolsetVersion has not been restored." -ForegroundColor Red
505445
ExitWithExitCode 1
506446
}
507447

@@ -586,7 +526,7 @@ function MSBuild-Core() {
586526
$exitCode = Exec-Process $buildTool.Path $cmdArgs
587527

588528
if ($exitCode -ne 0) {
589-
Write-PipelineTaskError "Build failed."
529+
Write-Host "Build failed." -ForegroundColor Red
590530

591531
$buildLog = GetMSBuildBinaryLogCommandLineArgument $args
592532
if ($buildLog -ne $null) {
@@ -614,8 +554,6 @@ function GetMSBuildBinaryLogCommandLineArgument($arguments) {
614554
return $null
615555
}
616556

617-
. $PSScriptRoot\LoggingCommandFunctions.ps1
618-
619557
$RepoRoot = Resolve-Path (Join-Path $PSScriptRoot "..\..")
620558
$EngRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
621559
$ArtifactsDir = Join-Path $RepoRoot "artifacts"
@@ -631,8 +569,11 @@ Create-Directory $ToolsetDir
631569
Create-Directory $TempDir
632570
Create-Directory $LogDir
633571

634-
Write-PipelineSetVariable -Name 'Artifacts' -Value $ArtifactsDir
635-
Write-PipelineSetVariable -Name 'Artifacts.Toolset' -Value $ToolsetDir
636-
Write-PipelineSetVariable -Name 'Artifacts.Log' -Value $LogDir
637-
Write-PipelineSetVariable -Name 'TEMP' -Value $TempDir
638-
Write-PipelineSetVariable -Name 'TMP' -Value $TempDir
572+
if ($ci) {
573+
Write-Host "##vso[task.setvariable variable=Artifacts]$ArtifactsDir"
574+
Write-Host "##vso[task.setvariable variable=Artifacts.Toolset]$ToolsetDir"
575+
Write-Host "##vso[task.setvariable variable=Artifacts.Log]$LogDir"
576+
577+
$env:TEMP = $TempDir
578+
$env:TMP = $TempDir
579+
}

0 commit comments

Comments
 (0)