Update dependencies from https://github.com/dotnet/arcade build 20190117.6 (#306)
This change updates the following dependencies - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19067.6
This commit is contained in:
parent
4756bd82d2
commit
739fd1e904
5 changed files with 79 additions and 9 deletions
|
@ -28,9 +28,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19066.1">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19067.6">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>0fb5fc58347f42121ddc9c0b361e84b8acbffb12</Sha>
|
<Sha>bed438c56afcd799b4de747291cf68815ae2f53b</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
@echo off
|
@echo off
|
||||||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -msbuildEngine dotnet -restore -execute -binaryLog /p:PublishBuildAssets=true /p:SdkTaskProjects=PublishBuildAssets.proj %*"
|
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0sdk-task.ps1""" -msbuildEngine dotnet -restore -projects PublishBuildAssets.proj -ci %*"
|
||||||
exit /b %ErrorLevel%
|
exit /b %ErrorLevel%
|
||||||
|
|
|
@ -6,7 +6,6 @@ Param(
|
||||||
[string] $msbuildEngine = $null,
|
[string] $msbuildEngine = $null,
|
||||||
[bool] $warnAsError = $true,
|
[bool] $warnAsError = $true,
|
||||||
[bool] $nodeReuse = $true,
|
[bool] $nodeReuse = $true,
|
||||||
[switch] $execute,
|
|
||||||
[switch][Alias('r')]$restore,
|
[switch][Alias('r')]$restore,
|
||||||
[switch] $deployDeps,
|
[switch] $deployDeps,
|
||||||
[switch][Alias('b')]$build,
|
[switch][Alias('b')]$build,
|
||||||
|
@ -18,7 +17,6 @@ Param(
|
||||||
[switch] $sign,
|
[switch] $sign,
|
||||||
[switch] $pack,
|
[switch] $pack,
|
||||||
[switch] $publish,
|
[switch] $publish,
|
||||||
[switch] $publishBuildAssets,
|
|
||||||
[switch][Alias('bl')]$binaryLog,
|
[switch][Alias('bl')]$binaryLog,
|
||||||
[switch] $ci,
|
[switch] $ci,
|
||||||
[switch] $prepareMachine,
|
[switch] $prepareMachine,
|
||||||
|
@ -48,7 +46,6 @@ function Print-Usage() {
|
||||||
Write-Host " -performanceTest Run all performance tests in the solution"
|
Write-Host " -performanceTest Run all performance tests in the solution"
|
||||||
Write-Host " -sign Sign build outputs"
|
Write-Host " -sign Sign build outputs"
|
||||||
Write-Host " -publish Publish artifacts (e.g. symbols)"
|
Write-Host " -publish Publish artifacts (e.g. symbols)"
|
||||||
Write-Host " -publishBuildAssets Push assets to BAR"
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|
||||||
Write-Host "Advanced settings:"
|
Write-Host "Advanced settings:"
|
||||||
|
@ -61,7 +58,6 @@ function Print-Usage() {
|
||||||
Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
|
Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function InitializeCustomToolset {
|
function InitializeCustomToolset {
|
||||||
if (-not $restore) {
|
if (-not $restore) {
|
||||||
return
|
return
|
||||||
|
@ -77,6 +73,7 @@ function InitializeCustomToolset {
|
||||||
function Build {
|
function Build {
|
||||||
$toolsetBuildProj = InitializeToolset
|
$toolsetBuildProj = InitializeToolset
|
||||||
InitializeCustomToolset
|
InitializeCustomToolset
|
||||||
|
|
||||||
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
|
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
|
||||||
|
|
||||||
if ($projects) {
|
if ($projects) {
|
||||||
|
@ -102,7 +99,6 @@ function Build {
|
||||||
/p:PerformanceTest=$performanceTest `
|
/p:PerformanceTest=$performanceTest `
|
||||||
/p:Sign=$sign `
|
/p:Sign=$sign `
|
||||||
/p:Publish=$publish `
|
/p:Publish=$publish `
|
||||||
/p:Execute=$execute `
|
|
||||||
/p:ContinuousIntegrationBuild=$ci `
|
/p:ContinuousIntegrationBuild=$ci `
|
||||||
@properties
|
@properties
|
||||||
}
|
}
|
||||||
|
|
74
eng/common/sdk-task.ps1
Normal file
74
eng/common/sdk-task.ps1
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
[CmdletBinding(PositionalBinding=$false)]
|
||||||
|
Param(
|
||||||
|
[string] $projects = "",
|
||||||
|
[string][Alias('v')]$verbosity = "minimal",
|
||||||
|
[string] $msbuildEngine = $null,
|
||||||
|
[bool] $warnAsError = $true,
|
||||||
|
[switch][Alias('bl')]$binaryLog,
|
||||||
|
[switch][Alias('r')]$restore,
|
||||||
|
[switch] $ci,
|
||||||
|
[switch] $prepareMachine,
|
||||||
|
[switch] $help,
|
||||||
|
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
|
||||||
|
)
|
||||||
|
|
||||||
|
. $PSScriptRoot\tools.ps1
|
||||||
|
|
||||||
|
function Print-Usage() {
|
||||||
|
Write-Host "Common settings:"
|
||||||
|
Write-Host " -v[erbosity] <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]"
|
||||||
|
Write-Host " -[bl|binaryLog] Output binary log (short: -bl)"
|
||||||
|
Write-Host " -help Print help and exit"
|
||||||
|
Write-Host ""
|
||||||
|
|
||||||
|
Write-Host "Advanced settings:"
|
||||||
|
Write-Host " -restore Restore dependencies (short: -r)"
|
||||||
|
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's from the Arcade sdk to build. Globbing is supported (*.sln)"
|
||||||
|
Write-Host " -ci Set when running on CI server"
|
||||||
|
Write-Host " -prepareMachine Prepare machine for CI run"
|
||||||
|
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "Command line arguments not listed above are passed thru to msbuild."
|
||||||
|
Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
|
||||||
|
}
|
||||||
|
|
||||||
|
function Build {
|
||||||
|
$toolsetBuildProj = InitializeToolset
|
||||||
|
|
||||||
|
$toolsetBuildProj = Join-Path (Split-Path $toolsetBuildProj -Parent) "SdkTasks\SdkTask.proj"
|
||||||
|
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "SdkTask.binlog") } else { "" }
|
||||||
|
MSBuild $toolsetBuildProj `
|
||||||
|
$bl `
|
||||||
|
/p:Projects=$projects `
|
||||||
|
/p:Restore=$restore `
|
||||||
|
/p:RepoRoot=$RepoRoot `
|
||||||
|
/p:ContinuousIntegrationBuild=$ci `
|
||||||
|
@properties
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
if ($help -or (($null -ne $properties) -and ($properties.Contains("/help") -or $properties.Contains("/?")))) {
|
||||||
|
Print-Usage
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($projects -eq "") {
|
||||||
|
Write-Error "Missing required parameter '-projects <value>'"
|
||||||
|
Print-Usage
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($ci) {
|
||||||
|
$binaryLog = $true
|
||||||
|
}
|
||||||
|
|
||||||
|
Build
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Host $_
|
||||||
|
Write-Host $_.Exception
|
||||||
|
Write-Host $_.ScriptStackTrace
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
|
|
||||||
|
ExitWithExitCode 0
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.0.100-preview-009812"
|
"dotnet": "3.0.100-preview-009812"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19066.1"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19067.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue