-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[master] Update dependencies from dotnet/arcade (#323)
* Update dependencies from https://github.com/dotnet/arcade build 20190501.6 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19251.6 * update core 1.1 version * Update dependencies from https://github.com/dotnet/arcade build 20190502.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19252.2 * Update dependencies from https://github.com/dotnet/arcade build 20190503.8 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19253.8 * Update dependencies from https://github.com/dotnet/arcade build 20190504.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19254.1 * Update dependencies from https://github.com/dotnet/arcade build 20190505.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19255.2 * Update dependencies from https://github.com/dotnet/arcade build 20190506.12 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19256.12 * Update dependencies from https://github.com/dotnet/arcade build 20190507.7 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19257.7 * add additional shared frameworks * try a separate pool * Update dependencies from https://github.com/dotnet/arcade build 20190508.5 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19258.5 * Update dependencies from https://github.com/dotnet/arcade build 20190509.9 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19259.9 * Update dependencies from https://github.com/dotnet/arcade build 20190510.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19260.2 * Update dependencies from https://github.com/dotnet/arcade build 20190511.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19261.1 * Update dependencies from https://github.com/dotnet/arcade build 20190512.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19262.1 * Update dependencies from https://github.com/dotnet/arcade build 20190513.3 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19263.3 * Update dependencies from https://github.com/dotnet/arcade build 20190514.13 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19264.13 * Update dependencies from https://github.com/dotnet/arcade build 20190516.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.2 * Update dependencies from https://github.com/dotnet/arcade build 20190516.4 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.4 * Update dependencies from https://github.com/dotnet/arcade build 20190517.7 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19267.7 * Update dependencies from https://github.com/dotnet/arcade build 20190518.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19268.2 * Update dependencies from https://github.com/dotnet/arcade build 20190520.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.1 * 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/dotnet/arcade build 20190521.7 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19271.7 * Update dependencies from https://github.com/dotnet/arcade build 20190522.13 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13 * Update dependencies from https://github.com/dotnet/arcade build 20190523.11 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19273.11 * Update dependencies from https://github.com/dotnet/arcade build 20190524.6 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19274.6 * Update dependencies from https://github.com/dotnet/arcade build 20190528.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19278.1 * Update dependencies from https://github.com/dotnet/arcade build 20190529.5 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19279.5 * Update dependencies from https://github.com/dotnet/arcade build 20190530.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19280.2 * Update dependencies from https://github.com/dotnet/arcade build 20190531.5 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19281.5 * use 2017 pool * install 2.2 sdk * Update dependencies from https://github.com/dotnet/arcade build 20190601.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19301.2 * use new dnceng pool * Update dependencies from https://github.com/dotnet/arcade build 20190602.2 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19302.2 * Update dependencies from https://github.com/dotnet/arcade build 20190604.1 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19304.1
- Loading branch information
1 parent
f9c4c5b
commit 29a826c
Showing
34 changed files
with
935 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# Source for this file was taken from https://github.com/microsoft/azure-pipelines-task-lib/blob/11c9439d4af17e6475d9fe058e6b2e03914d17e6/powershell/VstsTaskSdk/LoggingCommandFunctions.ps1 | ||
|
||
# NOTE: You should not be calling these method directly as they are likely to change. Instead you should be calling the Write-Pipeline* functions defined in tools.ps1 | ||
|
||
$script:loggingCommandPrefix = '##vso[' | ||
$script:loggingCommandEscapeMappings = @( # TODO: WHAT ABOUT "="? WHAT ABOUT "%"? | ||
New-Object psobject -Property @{ Token = ';' ; Replacement = '%3B' } | ||
New-Object psobject -Property @{ Token = "`r" ; Replacement = '%0D' } | ||
New-Object psobject -Property @{ Token = "`n" ; Replacement = '%0A' } | ||
New-Object psobject -Property @{ Token = "]" ; Replacement = '%5D' } | ||
) | ||
# TODO: BUG: Escape % ??? | ||
# TODO: Add test to verify don't need to escape "=". | ||
|
||
<######################################## | ||
# Private functions. | ||
########################################> | ||
function Format-LoggingCommandData { | ||
[CmdletBinding()] | ||
param([string]$Value, [switch]$Reverse) | ||
|
||
if (!$Value) { | ||
return '' | ||
} | ||
|
||
if (!$Reverse) { | ||
foreach ($mapping in $script:loggingCommandEscapeMappings) { | ||
$Value = $Value.Replace($mapping.Token, $mapping.Replacement) | ||
} | ||
} else { | ||
for ($i = $script:loggingCommandEscapeMappings.Length - 1 ; $i -ge 0 ; $i--) { | ||
$mapping = $script:loggingCommandEscapeMappings[$i] | ||
$Value = $Value.Replace($mapping.Replacement, $mapping.Token) | ||
} | ||
} | ||
|
||
return $Value | ||
} | ||
|
||
function Format-LoggingCommand { | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string]$Area, | ||
[Parameter(Mandatory = $true)] | ||
[string]$Event, | ||
[string]$Data, | ||
[hashtable]$Properties) | ||
|
||
# Append the preamble. | ||
[System.Text.StringBuilder]$sb = New-Object -TypeName System.Text.StringBuilder | ||
$null = $sb.Append($script:loggingCommandPrefix).Append($Area).Append('.').Append($Event) | ||
|
||
# Append the properties. | ||
if ($Properties) { | ||
$first = $true | ||
foreach ($key in $Properties.Keys) { | ||
[string]$value = Format-LoggingCommandData $Properties[$key] | ||
if ($value) { | ||
if ($first) { | ||
$null = $sb.Append(' ') | ||
$first = $false | ||
} else { | ||
$null = $sb.Append(';') | ||
} | ||
|
||
$null = $sb.Append("$key=$value") | ||
} | ||
} | ||
} | ||
|
||
# Append the tail and output the value. | ||
$Data = Format-LoggingCommandData $Data | ||
$sb.Append(']').Append($Data).ToString() | ||
} | ||
|
||
function Write-LoggingCommand { | ||
[CmdletBinding(DefaultParameterSetName = 'Parameters')] | ||
param( | ||
[Parameter(Mandatory = $true, ParameterSetName = 'Parameters')] | ||
[string]$Area, | ||
[Parameter(Mandatory = $true, ParameterSetName = 'Parameters')] | ||
[string]$Event, | ||
[Parameter(ParameterSetName = 'Parameters')] | ||
[string]$Data, | ||
[Parameter(ParameterSetName = 'Parameters')] | ||
[hashtable]$Properties, | ||
[Parameter(Mandatory = $true, ParameterSetName = 'Object')] | ||
$Command, | ||
[switch]$AsOutput) | ||
|
||
if ($PSCmdlet.ParameterSetName -eq 'Object') { | ||
Write-LoggingCommand -Area $Command.Area -Event $Command.Event -Data $Command.Data -Properties $Command.Properties -AsOutput:$AsOutput | ||
return | ||
} | ||
|
||
$command = Format-LoggingCommand -Area $Area -Event $Event -Data $Data -Properties $Properties | ||
if ($AsOutput) { | ||
$command | ||
} else { | ||
Write-Host $command | ||
} | ||
} | ||
|
||
function Write-LogIssue { | ||
[CmdletBinding()] | ||
param( | ||
[ValidateSet('warning', 'error')] | ||
[Parameter(Mandatory = $true)] | ||
[string]$Type, | ||
[string]$Message, | ||
[string]$ErrCode, | ||
[string]$SourcePath, | ||
[string]$LineNumber, | ||
[string]$ColumnNumber, | ||
[switch]$AsOutput) | ||
|
||
$command = Format-LoggingCommand -Area 'task' -Event 'logissue' -Data $Message -Properties @{ | ||
'type' = $Type | ||
'code' = $ErrCode | ||
'sourcepath' = $SourcePath | ||
'linenumber' = $LineNumber | ||
'columnnumber' = $ColumnNumber | ||
} | ||
if ($AsOutput) { | ||
return $command | ||
} | ||
|
||
if ($Type -eq 'error') { | ||
$foregroundColor = $host.PrivateData.ErrorForegroundColor | ||
$backgroundColor = $host.PrivateData.ErrorBackgroundColor | ||
if ($foregroundColor -isnot [System.ConsoleColor] -or $backgroundColor -isnot [System.ConsoleColor]) { | ||
$foregroundColor = [System.ConsoleColor]::Red | ||
$backgroundColor = [System.ConsoleColor]::Black | ||
} | ||
} else { | ||
$foregroundColor = $host.PrivateData.WarningForegroundColor | ||
$backgroundColor = $host.PrivateData.WarningBackgroundColor | ||
if ($foregroundColor -isnot [System.ConsoleColor] -or $backgroundColor -isnot [System.ConsoleColor]) { | ||
$foregroundColor = [System.ConsoleColor]::Yellow | ||
$backgroundColor = [System.ConsoleColor]::Black | ||
} | ||
} | ||
|
||
Write-Host $command -ForegroundColor $foregroundColor -BackgroundColor $backgroundColor | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://deb.debian.org/debian buster main | ||
deb-src http://deb.debian.org/debian buster main | ||
|
||
deb http://deb.debian.org/debian-security/ buster/updates main | ||
deb-src http://deb.debian.org/debian-security/ buster/updates main | ||
|
||
deb http://deb.debian.org/debian buster-updates main | ||
deb-src http://deb.debian.org/debian buster-updates main | ||
|
||
deb http://deb.debian.org/debian buster-backports main contrib non-free | ||
deb-src http://deb.debian.org/debian buster-backports main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
deb http://deb.debian.org/debian stretch main | ||
deb-src http://deb.debian.org/debian stretch main | ||
|
||
deb http://deb.debian.org/debian-security/ stretch/updates main | ||
deb-src http://deb.debian.org/debian-security/ stretch/updates main | ||
|
||
deb http://deb.debian.org/debian stretch-updates main | ||
deb-src http://deb.debian.org/debian stretch-updates main | ||
|
||
deb http://deb.debian.org/debian stretch-backports main contrib non-free | ||
deb-src http://deb.debian.org/debian stretch-backports main contrib non-free | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.