aspnetcore-tooling/eng/common/build.ps1

170 строки
6.0 KiB
PowerShell
Исходник Постоянная ссылка Обычный вид История

[CmdletBinding(PositionalBinding=$false)]
2018-11-30 06:28:21 +03:00
Param(
[string][Alias('c')]$configuration = "Debug",
[master] Update dependencies from dotnet/arcadeaspnet/Extensions (#606) * Update dependencies from https://github.com/dotnet/arcade build 20190520.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.2 * Update dependencies from https://github.com/aspnet/Extensions build 20190519.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview6.19269.1 - Microsoft.AspNetCore.Testing - 3.0.0-preview6.19269.1 - Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.Logging - 3.0.0-preview6.19269.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 4.6.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 1.7.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - System.Text.Encodings.Web - 4.6.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - Microsoft.Extensions.DependencyModel - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 3.0.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) * Update dependencies from https://github.com/aspnet/Extensions build 20190520.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview6.19270.1 - Microsoft.AspNetCore.Testing - 3.0.0-preview6.19270.1 - Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.Logging - 3.0.0-preview6.19270.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 4.6.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 1.7.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - System.Text.Encodings.Web - 4.6.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - Microsoft.Extensions.DependencyModel - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 3.0.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging)
2019-05-21 05:24:03 +03:00
[string]$platform = $null,
[string] $projects,
[string][Alias('v')]$verbosity = "minimal",
2018-11-30 06:28:21 +03:00
[string] $msbuildEngine = $null,
[bool] $warnAsError = $true,
[bool] $nodeReuse = $true,
[switch][Alias('r')]$restore,
2018-11-30 06:28:21 +03:00
[switch] $deployDeps,
[switch][Alias('b')]$build,
2018-11-30 06:28:21 +03:00
[switch] $rebuild,
[switch] $deploy,
[switch][Alias('t')]$test,
2018-11-30 06:28:21 +03:00
[switch] $integrationTest,
[switch] $performanceTest,
[switch] $sign,
[switch] $pack,
[switch] $publish,
[master] Update dependencies from dotnet/arcade aspnet/Extensions (#1258) * Update dependencies from https://github.com/dotnet/arcade build 20191018.2 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19518.2 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191020.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19520.1 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19520.1 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191021.3 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19521.3 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19521.3 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191024.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19524.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19524.2 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191025.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19525.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/dotnet/arcade build 20191027.3 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19527.3 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191025.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19525.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191029.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19529.1 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19529.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191030.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19530.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/dotnet/arcade build 20191031.8 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19531.8 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191030.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19530.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64)
2019-11-01 18:25:39 +03:00
[switch] $clean,
[switch][Alias('pb')]$productBuild,
[switch][Alias('bl')]$binaryLog,
[switch][Alias('nobl')]$excludeCIBinarylog,
2018-11-30 06:28:21 +03:00
[switch] $ci,
[switch] $prepareMachine,
[string] $runtimeSourceFeed = '',
[string] $runtimeSourceFeedKey = '',
[switch] $excludePrereleaseVS,
[switch] $nativeToolsOnMachine,
2018-11-30 06:28:21 +03:00
[switch] $help,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
)
# Unset 'Platform' environment variable to avoid unwanted collision in InstallDotNetCore.targets file
# some computer has this env var defined (e.g. Some HP)
if($env:Platform) {
$env:Platform=""
}
2018-11-30 06:28:21 +03:00
function Print-Usage() {
Write-Host "Common settings:"
Write-Host " -configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
Write-Host " -platform <value> Platform configuration: 'x86', 'x64' or any valid Platform value to pass to msbuild"
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
Write-Host " -binaryLog Output binary log (short: -bl)"
Write-Host " -help Print help and exit"
Write-Host ""
Write-Host "Actions:"
Write-Host " -restore Restore dependencies (short: -r)"
Write-Host " -build Build solution (short: -b)"
Write-Host " -rebuild Rebuild solution"
Write-Host " -deploy Deploy built VSIXes"
Write-Host " -deployDeps Deploy dependencies (e.g. VSIXes for integration tests)"
Write-Host " -test Run all unit tests in the solution (short: -t)"
Write-Host " -integrationTest Run all integration tests in the solution"
Write-Host " -performanceTest Run all performance tests in the solution"
Write-Host " -pack Package build outputs into NuGet packages and Willow components"
Write-Host " -sign Sign build outputs"
Write-Host " -publish Publish artifacts (e.g. symbols)"
Write-Host " -clean Clean the solution"
Write-Host " -productBuild Build the solution in the way it will be built in the full .NET product (VMR) build (short: -pb)"
Write-Host ""
Write-Host "Advanced settings:"
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's to build. Globbing is supported (*.sln)"
Write-Host " -ci Set when running on CI server"
Write-Host " -excludeCIBinarylog Don't output binary log (short: -nobl)"
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
Write-Host " -warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio"
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"
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.)."
2018-11-30 06:28:21 +03:00
}
. $PSScriptRoot\tools.ps1
function InitializeCustomToolset {
if (-not $restore) {
return
2018-11-30 06:28:21 +03:00
}
$script = Join-Path $EngRoot 'restore-toolset.ps1'
2018-11-30 06:28:21 +03:00
if (Test-Path $script) {
. $script
}
}
function Build {
$toolsetBuildProj = InitializeToolset
InitializeCustomToolset
$bl = if ($binaryLog) { '/bl:' + (Join-Path $LogDir 'Build.binlog') } else { '' }
$platformArg = if ($platform) { "/p:Platform=$platform" } else { '' }
2018-11-30 06:28:21 +03:00
if ($projects) {
# Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
# Explicitly set the type as string[] because otherwise PowerShell would make this char[] if $properties is empty.
[string[]] $msbuildArgs = $properties
# Resolve relative project paths into full paths
$projects = ($projects.Split(';').ForEach({Resolve-Path $_}) -join ';')
$msbuildArgs += "/p:Projects=$projects"
$properties = $msbuildArgs
}
MSBuild $toolsetBuildProj `
$bl `
[master] Update dependencies from dotnet/arcadeaspnet/Extensions (#606) * Update dependencies from https://github.com/dotnet/arcade build 20190520.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.2 * Update dependencies from https://github.com/aspnet/Extensions build 20190519.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview6.19269.1 - Microsoft.AspNetCore.Testing - 3.0.0-preview6.19269.1 - Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview6.19269.1 - Microsoft.Extensions.Logging - 3.0.0-preview6.19269.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 4.6.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 1.7.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - System.Text.Encodings.Web - 4.6.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - Microsoft.Extensions.DependencyModel - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 3.0.0-preview6.19268.5 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27718-08 (parent: Microsoft.Extensions.Logging) * Update dependencies from https://github.com/aspnet/Extensions build 20190520.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview6.19270.1 - Microsoft.AspNetCore.Testing - 3.0.0-preview6.19270.1 - Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview6.19270.1 - Microsoft.Extensions.Logging - 3.0.0-preview6.19270.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 4.6.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 1.7.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - System.Text.Encodings.Web - 4.6.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - Microsoft.Extensions.DependencyModel - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 3.0.0-preview6.19269.4 (parent: Microsoft.NETCore.App) - Microsoft.NETCore.App - 3.0.0-preview6-27719-10 (parent: Microsoft.Extensions.Logging)
2019-05-21 05:24:03 +03:00
$platformArg `
2018-11-30 06:28:21 +03:00
/p:Configuration=$configuration `
/p:RepoRoot=$RepoRoot `
/p:Restore=$restore `
/p:DeployDeps=$deployDeps `
/p:Build=$build `
/p:Rebuild=$rebuild `
/p:Deploy=$deploy `
/p:Test=$test `
/p:Pack=$pack `
/p:DotNetBuildRepo=$productBuild `
2018-11-30 06:28:21 +03:00
/p:IntegrationTest=$integrationTest `
/p:PerformanceTest=$performanceTest `
/p:Sign=$sign `
/p:Publish=$publish `
@properties
}
try {
if ($clean) {
if (Test-Path $ArtifactsDir) {
Remove-Item -Recurse -Force $ArtifactsDir
Write-Host 'Artifacts directory deleted.'
}
exit 0
}
if ($help -or (($null -ne $properties) -and ($properties.Contains('/help') -or $properties.Contains('/?')))) {
Print-Usage
exit 0
}
2018-11-30 06:28:21 +03:00
if ($ci) {
if (-not $excludeCIBinarylog) {
$binaryLog = $true
}
$nodeReuse = $false
}
if ($nativeToolsOnMachine) {
$env:NativeToolsOnMachine = $true
}
[master] Update dependencies from dotnet/arcade aspnet/Extensions (#1258) * Update dependencies from https://github.com/dotnet/arcade build 20191018.2 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19518.2 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191020.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19520.1 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19520.1 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19520.1 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19519.8 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19519.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191021.3 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19521.3 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19521.3 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19521.3 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191024.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19524.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19524.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19524.2 Dependency coherency updates - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191025.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19525.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/dotnet/arcade build 20191027.3 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19527.3 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191025.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19525.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19525.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191029.1 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19529.1 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19529.1 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19529.1 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191030.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19530.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/dotnet/arcade build 20191031.8 - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19531.8 Dependency coherency updates - System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64) * Update dependencies from https://github.com/aspnet/Extensions build 20191030.2 - Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.NonCapturingTimer.Sources - 5.0.0-alpha1.19530.2 - Microsoft.Extensions.Logging - 5.0.0-alpha1.19530.2 Dependency coherency updates - System.Diagnostics.DiagnosticSource - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - System.Reflection.Metadata - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encodings.Web - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64) - Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19521.2 (parent: Microsoft.Extensions.Logging) - Microsoft.NETCore.Platforms - 5.0.0-alpha1.19520.7 (parent: Microsoft.NETCore.App.Runtime.win-x64)
2019-11-01 18:25:39 +03:00
if ($restore) {
InitializeNativeTools
}
Build
2018-11-30 06:28:21 +03:00
}
catch {
Write-Host $_.ScriptStackTrace
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message $_
2018-11-30 06:28:21 +03:00
ExitWithExitCode 1
}
ExitWithExitCode 0