Skip to content

Commit 2d71a30

Browse files
dotnet-maestro[bot]joperezr
authored andcommitted
[master] Update dependencies from dotnet/arcade (#487)
* Update dependencies from https://github.com/dotnet/arcade build 20190607.62 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19307.62 - Microsoft.DotNet.GenAPI - 1.0.0-beta.19307.62 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19307.62 * Update dependencies from https://github.com/dotnet/arcade build 20190608.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19308.1 - Microsoft.DotNet.GenAPI - 1.0.0-beta.19308.1 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19308.1 * Update dependencies from https://github.com/dotnet/arcade build 20190609.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19309.1 - Microsoft.DotNet.GenAPI - 1.0.0-beta.19309.1 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19309.1
1 parent 3e31714 commit 2d71a30

File tree

8 files changed

+58
-57
lines changed

8 files changed

+58
-57
lines changed

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
</Dependency>
1212
</ProductDependencies>
1313
<ToolsetDependencies>
14-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19306.12">
14+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19309.1">
1515
<Uri>https://github.com/dotnet/arcade</Uri>
16-
<Sha>a1805103791e43031355e11c0d037bca803a9593</Sha>
16+
<Sha>45361625125cdd3119050a852bd73163ca4b73f4</Sha>
1717
</Dependency>
18-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19306.12">
18+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19309.1">
1919
<Uri>https://github.com/dotnet/arcade</Uri>
20-
<Sha>a1805103791e43031355e11c0d037bca803a9593</Sha>
20+
<Sha>45361625125cdd3119050a852bd73163ca4b73f4</Sha>
2121
</Dependency>
22-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19306.12">
22+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19309.1">
2323
<Uri>https://github.com/dotnet/arcade</Uri>
24-
<Sha>a1805103791e43031355e11c0d037bca803a9593</Sha>
24+
<Sha>45361625125cdd3119050a852bd73163ca4b73f4</Sha>
2525
</Dependency>
2626
</ToolsetDependencies>
2727
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<SystemDeviceGpioPackageVersion>0.1.0-prerelease.19307.2</SystemDeviceGpioPackageVersion>
77
<IotDeviceBindingsPackageVersion>0.1.0-prerelease.19307.2</IotDeviceBindingsPackageVersion>
88
<!-- dotnet/arcade dependencies -->
9-
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19306.12</MicrosoftDotNetGenAPIPackageVersion>
9+
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19309.1</MicrosoftDotNetGenAPIPackageVersion>
1010
</PropertyGroup>
1111
</Project>

eng/common/darc-init.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ function InstallDarcCli ($darcVersion) {
1111

1212
$dotnetRoot = InitializeDotNetCli -install:$true
1313
$dotnet = "$dotnetRoot\dotnet.exe"
14-
$toolList = Invoke-Expression "& `"$dotnet`" tool list -g"
14+
$toolList = & "$dotnet" tool list -g
1515

1616
if ($toolList -like "*$darcCliPackageName*") {
17-
Invoke-Expression "& `"$dotnet`" tool uninstall $darcCliPackageName -g"
17+
& "$dotnet" tool uninstall $darcCliPackageName -g
1818
}
1919

2020
# If the user didn't explicitly specify the darc version,
2121
# query the Maestro API for the correct version of darc to install.
2222
if (-not $darcVersion) {
2323
$darcVersion = $(Invoke-WebRequest -Uri $versionEndpoint -UseBasicParsing).Content
2424
}
25-
25+
2626
$arcadeServicesSource = 'https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json'
2727

2828
Write-Host "Installing Darc CLI version $darcVersion..."
2929
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
30-
Invoke-Expression "& `"$dotnet`" tool install $darcCliPackageName --version $darcVersion --add-source '$arcadeServicesSource' -v $verbosity -g"
30+
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
3131
}
3232

3333
InstallDarcCli $darcVersion

eng/common/generate-graph-files.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function CheckExitCode ([string]$stage)
2525

2626
try {
2727
Push-Location $PSScriptRoot
28-
28+
2929
Write-Host "Installing darc..."
3030
. .\darc-init.ps1 -darcVersion $darcVersion
3131
CheckExitCode "Running darc-init"
@@ -40,9 +40,9 @@ try {
4040

4141
$darcExe = "$env:USERPROFILE\.dotnet\tools"
4242
$darcExe = Resolve-Path "$darcExe\darc.exe"
43-
43+
4444
Create-Directory $outputFolder
45-
45+
4646
# Generate 3 graph descriptions:
4747
# 1. Flat with coherency information
4848
# 2. Graphviz (dot) file
@@ -51,26 +51,26 @@ try {
5151
$graphVizImageFilePath = "$outputFolder\graph.png"
5252
$normalGraphFilePath = "$outputFolder\graph-full.txt"
5353
$flatGraphFilePath = "$outputFolder\graph-flat.txt"
54-
$baseOptions = "get-dependency-graph --github-pat $gitHubPat --azdev-pat $azdoPat --password $barToken"
55-
54+
$baseOptions = @( "--github-pat", "$gitHubPat", "--azdev-pat", "$azdoPat", "--password", "$barToken" )
55+
5656
if ($includeToolset) {
5757
Write-Host "Toolsets will be included in the graph..."
58-
$baseOptions += " --include-toolset"
58+
$baseOptions += @( "--include-toolset" )
5959
}
6060

6161
Write-Host "Generating standard dependency graph..."
62-
Invoke-Expression "& `"$darcExe`" $baseOptions --output-file $normalGraphFilePath"
62+
& "$darcExe" get-dependency-graph @baseOptions --output-file $normalGraphFilePath
6363
CheckExitCode "Generating normal dependency graph"
6464

6565
Write-Host "Generating flat dependency graph and graphviz file..."
66-
Invoke-Expression "& `"$darcExe`" $baseOptions --flat --coherency --graphviz $graphVizFilePath --output-file $flatGraphFilePath"
66+
& "$darcExe" get-dependency-graph @baseOptions --flat --coherency --graphviz $graphVizFilePath --output-file $flatGraphFilePath
6767
CheckExitCode "Generating flat and graphviz dependency graph"
6868

6969
Write-Host "Generating graph image $graphVizFilePath"
7070
$dotFilePath = Join-Path $installBin "graphviz\$graphvizVersion\release\bin\dot.exe"
71-
Invoke-Expression "& `"$dotFilePath`" -Tpng -o'$graphVizImageFilePath' `"$graphVizFilePath`""
71+
& "$dotFilePath" -Tpng -o"$graphVizImageFilePath" "$graphVizFilePath"
7272
CheckExitCode "Generating graphviz image"
73-
73+
7474
Write-Host "'$graphVizFilePath', '$flatGraphFilePath', '$normalGraphFilePath' and '$graphVizImageFilePath' created!"
7575
}
7676
catch {

eng/common/init-tools-native.ps1

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,27 @@ try {
7979
$NativeTools.PSObject.Properties | ForEach-Object {
8080
$ToolName = $_.Name
8181
$ToolVersion = $_.Value
82-
$LocalInstallerCommand = $InstallerPath
83-
$LocalInstallerCommand += " -ToolName $ToolName"
84-
$LocalInstallerCommand += " -InstallPath $InstallBin"
85-
$LocalInstallerCommand += " -BaseUri $BaseUri"
86-
$LocalInstallerCommand += " -CommonLibraryDirectory $EngCommonBaseDir"
87-
$LocalInstallerCommand += " -Version $ToolVersion"
82+
$LocalInstallerArguments = @{ ToolName = "$ToolName" }
83+
$LocalInstallerArguments += @{ InstallPath = "$InstallBin" }
84+
$LocalInstallerArguments += @{ BaseUri = "$BaseUri" }
85+
$LocalInstallerArguments += @{ CommonLibraryDirectory = "$EngCommonBaseDir" }
86+
$LocalInstallerArguments += @{ Version = "$ToolVersion" }
8887

8988
if ($Verbose) {
90-
$LocalInstallerCommand += " -Verbose"
89+
$LocalInstallerArguments += @{ Verbose = $True }
9190
}
9291
if (Get-Variable 'Force' -ErrorAction 'SilentlyContinue') {
9392
if($Force) {
94-
$LocalInstallerCommand += " -Force"
93+
$LocalInstallerArguments += @{ Force = $True }
9594
}
9695
}
9796
if ($Clean) {
98-
$LocalInstallerCommand += " -Clean"
97+
$LocalInstallerArguments += @{ Clean = $True }
9998
}
10099

101100
Write-Verbose "Installing $ToolName version $ToolVersion"
102-
Write-Verbose "Executing '$LocalInstallerCommand'"
103-
Invoke-Expression "$LocalInstallerCommand"
101+
Write-Verbose "Executing '$InstallerPath $LocalInstallerArguments'"
102+
& $InstallerPath @LocalInstallerArguments
104103
if ($LASTEXITCODE -Ne "0") {
105104
$errMsg = "$ToolName installation failed"
106105
if ((Get-Variable 'DoNotAbortNativeToolsInstallationOnFailure' -ErrorAction 'SilentlyContinue') -and $DoNotAbortNativeToolsInstallationOnFailure) {

eng/common/native/CommonLibrary.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function New-ScriptShim {
209209
Remove-Item (Join-Path $ShimDirectory "$ShimName.exe")
210210
}
211211

212-
Invoke-Expression "$ShimDirectory\WinShimmer\winshimmer.exe $ShimName $ToolFilePath $ShimDirectory"
212+
& "$ShimDirectory\WinShimmer\winshimmer.exe" $ShimName $ToolFilePath $ShimDirectory
213213
return $True
214214
}
215215
catch {

eng/common/tools.ps1

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# Specifies which msbuild engine to use for build: 'vs', 'dotnet' or unspecified (determined based on presence of tools.vs in global.json).
3636
[string]$msbuildEngine = if (Test-Path variable:msbuildEngine) { $msbuildEngine } else { $null }
3737

38-
# True to attempt using .NET Core already that meets requirements specified in global.json
38+
# True to attempt using .NET Core already that meets requirements specified in global.json
3939
# installed on the machine instead of downloading one.
4040
[bool]$useInstalledDotNetCli = if (Test-Path variable:useInstalledDotNetCli) { $useInstalledDotNetCli } else { $true }
4141

@@ -76,7 +76,7 @@ function Exec-Process([string]$command, [string]$commandArgs) {
7676

7777
$finished = $false
7878
try {
79-
while (-not $process.WaitForExit(100)) {
79+
while (-not $process.WaitForExit(100)) {
8080
# Non-blocking loop done to allow ctr-c interrupts
8181
}
8282

@@ -250,7 +250,7 @@ function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $archit
250250
}
251251

252252
#
253-
# Locates Visual Studio MSBuild installation.
253+
# Locates Visual Studio MSBuild installation.
254254
# The preference order for MSBuild to use is as follows:
255255
#
256256
# 1. MSBuild from an active VS command prompt
@@ -267,7 +267,7 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
267267

268268
if (!$vsRequirements) { $vsRequirements = $GlobalJson.tools.vs }
269269
$vsMinVersionStr = if ($vsRequirements.version) { $vsRequirements.version } else { "15.9" }
270-
$vsMinVersion = [Version]::new($vsMinVersionStr)
270+
$vsMinVersion = [Version]::new($vsMinVersionStr)
271271

272272
# Try msbuild command available in the environment.
273273
if ($env:VSINSTALLDIR -ne $null) {
@@ -316,7 +316,7 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
316316
function InitializeVisualStudioEnvironmentVariables([string] $vsInstallDir, [string] $vsMajorVersion) {
317317
$env:VSINSTALLDIR = $vsInstallDir
318318
Set-Item "env:VS$($vsMajorVersion)0COMNTOOLS" (Join-Path $vsInstallDir "Common7\Tools\")
319-
319+
320320
$vsSdkInstallDir = Join-Path $vsInstallDir "VSSDK\"
321321
if (Test-Path $vsSdkInstallDir) {
322322
Set-Item "env:VSSDK$($vsMajorVersion)0Install" $vsSdkInstallDir
@@ -351,13 +351,13 @@ function InitializeXCopyMSBuild([string]$packageVersion, [bool]$install) {
351351
# Locates Visual Studio instance that meets the minimal requirements specified by tools.vs object in global.json.
352352
#
353353
# The following properties of tools.vs are recognized:
354-
# "version": "{major}.{minor}"
354+
# "version": "{major}.{minor}"
355355
# Two part minimal VS version, e.g. "15.9", "16.0", etc.
356-
# "components": ["componentId1", "componentId2", ...]
356+
# "components": ["componentId1", "componentId2", ...]
357357
# Array of ids of workload components that must be available in the VS instance.
358358
# See e.g. https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2017
359359
#
360-
# Returns JSON describing the located VS instance (same format as returned by vswhere),
360+
# Returns JSON describing the located VS instance (same format as returned by vswhere),
361361
# or $null if no instance meeting the requirements is found on the machine.
362362
#
363363
function LocateVisualStudio([object]$vsRequirements = $null){
@@ -378,7 +378,7 @@ function LocateVisualStudio([object]$vsRequirements = $null){
378378

379379
if (!$vsRequirements) { $vsRequirements = $GlobalJson.tools.vs }
380380
$args = @("-latest", "-prerelease", "-format", "json", "-requires", "Microsoft.Component.MSBuild")
381-
381+
382382
if (Get-Member -InputObject $vsRequirements -Name "version") {
383383
$args += "-version"
384384
$args += $vsRequirements.version
@@ -388,7 +388,7 @@ function LocateVisualStudio([object]$vsRequirements = $null){
388388
foreach ($component in $vsRequirements.components) {
389389
$args += "-requires"
390390
$args += $component
391-
}
391+
}
392392
}
393393

394394
$vsInfo =& $vsWhereExe $args | ConvertFrom-Json
@@ -445,7 +445,7 @@ function GetDefaultMSBuildEngine() {
445445
if (Get-Member -InputObject $GlobalJson.tools -Name "vs") {
446446
return "vs"
447447
}
448-
448+
449449
if (Get-Member -InputObject $GlobalJson.tools -Name "dotnet") {
450450
return "dotnet"
451451
}
@@ -475,11 +475,13 @@ function GetSdkTaskProject([string]$taskName) {
475475

476476
function InitializeNativeTools() {
477477
if (Get-Member -InputObject $GlobalJson -Name "native-tools") {
478-
$nativeArgs=""
478+
$nativeArgs= @{}
479479
if ($ci) {
480-
$nativeArgs = "-InstallDirectory $ToolsDir"
480+
$nativeArgs = @{
481+
InstallDirectory = "$ToolsDir"
482+
}
481483
}
482-
Invoke-Expression "& `"$PSScriptRoot/init-tools-native.ps1`" $nativeArgs"
484+
& "$PSScriptRoot/init-tools-native.ps1" @nativeArgs
483485
}
484486
}
485487

@@ -573,38 +575,38 @@ function MSBuild-Core() {
573575

574576
$cmdArgs = "$($buildTool.Command) /m /nologo /clp:Summary /v:$verbosity /nr:$nodeReuse /p:ContinuousIntegrationBuild=$ci"
575577

576-
if ($warnAsError) {
577-
$cmdArgs += " /warnaserror /p:TreatWarningsAsErrors=true"
578+
if ($warnAsError) {
579+
$cmdArgs += " /warnaserror /p:TreatWarningsAsErrors=true"
578580
}
579581

580582
foreach ($arg in $args) {
581583
if ($arg -ne $null -and $arg.Trim() -ne "") {
582584
$cmdArgs += " `"$arg`""
583585
}
584586
}
585-
587+
586588
$exitCode = Exec-Process $buildTool.Path $cmdArgs
587589

588590
if ($exitCode -ne 0) {
589591
Write-PipelineTaskError "Build failed."
590592

591593
$buildLog = GetMSBuildBinaryLogCommandLineArgument $args
592-
if ($buildLog -ne $null) {
593-
Write-Host "See log: $buildLog" -ForegroundColor DarkGray
594+
if ($buildLog -ne $null) {
595+
Write-Host "See log: $buildLog" -ForegroundColor DarkGray
594596
}
595597

596598
ExitWithExitCode $exitCode
597599
}
598600
}
599601

600-
function GetMSBuildBinaryLogCommandLineArgument($arguments) {
602+
function GetMSBuildBinaryLogCommandLineArgument($arguments) {
601603
foreach ($argument in $arguments) {
602604
if ($argument -ne $null) {
603605
$arg = $argument.Trim()
604606
if ($arg.StartsWith("/bl:", "OrdinalIgnoreCase")) {
605607
return $arg.Substring("/bl:".Length)
606-
}
607-
608+
}
609+
608610
if ($arg.StartsWith("/binaryLogger:", "OrdinalIgnoreCase")) {
609611
return $arg.Substring("/binaryLogger:".Length)
610612
}

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"version": "3.0.100-preview5-011568"
1212
},
1313
"msbuild-sdks": {
14-
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19306.12",
15-
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19306.12"
14+
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19309.1",
15+
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19309.1"
1616
}
1717
}

0 commit comments

Comments
 (0)