Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
406aec1
Update branding to preview6
mmitche Apr 23, 2019
9d1d009
Merge pull request #1164 from mmitche/update-branding-on-master
mmitche Apr 23, 2019
5e0984a
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Apr 23, 2019
5bd46b6
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Apr 24, 2019
431fdda
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Apr 25, 2019
4acc9a6
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Apr 26, 2019
e94d426
[master] Update dependencies from dotnet/arcade (#1170)
dotnet-maestro[bot] Apr 30, 2019
9681af4
Prevent non-framework code from extending BaseNumberConverter
May 2, 2019
2f11f62
Update to the 3.0 SDK
wtgodbe May 1, 2019
97902dd
Update dependencies from https://github.com/dotnet/arcade build 20190…
May 7, 2019
ec5eb04
Disable unnecessary import of BeforeCommonTargets.targets
wtgodbe May 7, 2019
0db86a9
Remove unnecessary imports of dir.build.targets
wtgodbe May 7, 2019
b169999
Merge pull request #1173 from wtgodbe/30SDK
wtgodbe May 8, 2019
ebeec50
Move WithCancellation/ConfigureAwait extension methods
joperezr May 9, 2019
b77bbe5
Merge pull request #1181 from joperezr/TaskAsyncEnumerableExtensions
May 9, 2019
904f4f5
Merge pull request #1176 from terrajobst/base-number-converter-fix
May 9, 2019
4aa3cc2
Add bulk operations to Collection<T>
May 2, 2019
c2a2878
Fix official build which is failing when trying to publish the packag…
joperezr May 9, 2019
a7b363d
Merge pull request #1175 from terrajobst/observable-bulk
May 9, 2019
013b89d
Adding signing to the build command as well
joperezr May 9, 2019
f1d799b
Fail CI build if APICompat baseline files would change
wtgodbe May 10, 2019
f61ae50
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 11, 2019
c139217
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 12, 2019
4b3bef4
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 13, 2019
efcc3ad
Set BaselineAllAPICompatError based on ContinuousIntegrationBuild
wtgodbe May 13, 2019
df2760b
Update azure-pipelines.yml
JohnTortugo May 13, 2019
ae68752
Update azure-pipelines.yml
JohnTortugo May 13, 2019
557c5ec
Merge pull request #1189 from dotnet/SwitchPool
JohnTortugo May 14, 2019
97438d0
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 14, 2019
5f041c2
Merge pull request #1185 from wtgodbe/APICompatError
wtgodbe May 14, 2019
7053cdf
Fix link to interactive version table
May 14, 2019
d3413ee
Add shims to netstandard2.1 for types that used to have OOB packages …
wtgodbe May 15, 2019
4ddf8f5
Seal types that cannot be inherited
May 9, 2019
4f12869
Merge pull request #1183 from terrajobst/more-sealed-types
May 15, 2019
ca3d658
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 17, 2019
be51515
Remove trailing whitespace
May 17, 2019
92ce6f5
Enables C# mode command line diff
May 17, 2019
9682fce
Add asymmetric key import/export APIs
May 17, 2019
a842350
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 18, 2019
960bd51
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 19, 2019
2f630cd
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 20, 2019
0c3b4e6
Merge pull request #1196 from terrajobst/fix-git-diff
May 20, 2019
e5065d8
Merge pull request #1197 from terrajobst/fix-1193
May 20, 2019
6ff662c
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 21, 2019
c6b28b7
Fix public key of ns2.0 shims (#1203)
ericstj May 21, 2019
2ac0a96
Add missing members to MemoryMarshal
May 17, 2019
060abaa
Merge pull request #1198 from terrajobst/fix-api-compat-1193
May 21, 2019
d564685
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 22, 2019
8f6300e
[master] Update dependencies from dotnet/arcade (#1192)
dotnet-maestro[bot] May 22, 2019
8ddc1bb
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 23, 2019
f54fdb3
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 23, 2019
e4c4423
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 24, 2019
dbf0273
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 24, 2019
0d9481b
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 25, 2019
be14760
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 25, 2019
abc624a
Update dependencies from https://github.com/dotnet/corefx build 20190…
dotnet-maestro[bot] May 28, 2019
aa44942
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 29, 2019
3b98027
Source build fixes (#1217)
ericstj May 29, 2019
2c94a70
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 30, 2019
bb97ef1
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] May 31, 2019
4d364ea
[master] Update dependencies from dotnet/corefx (#1216)
dotnet-maestro[bot] May 31, 2019
b2d56be
Revert "Add bulk operations to Collection<T>"
safern May 31, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
Expand Down Expand Up @@ -46,9 +46,9 @@

###############################################################################
# diff behavior for common document formats
#
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
Expand Down
9 changes: 7 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<!-- Enable the analyzers for this repo -->
<PropertyGroup>
<IsSourceProject Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))">true</IsSourceProject>
<IsSourceProject>$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))</IsSourceProject>
<EnableAnalyzers Condition="'$(EnableAnalyzers)'=='' and '$(IsSourceProject)' == 'true'">true</EnableAnalyzers>
</PropertyGroup>

Expand All @@ -70,7 +70,9 @@
<!-- By default make all libraries to be AnyCPU but individual projects can override it if they need to -->
<Platform>AnyCPU</Platform>
<OutputType>Library</OutputType>
<RunApiCompat>true</RunApiCompat>
<RunApiCompat>$(IsSourceProject)</RunApiCompat>
<BaselineAllAPICompatError Condition="'$(BaselineAllAPICompatError)' == ''">true</BaselineAllAPICompatError>
<BaselineAllAPICompatError Condition="'$(ContinuousIntegrationBuild)' == 'true'">false</BaselineAllAPICompatError>
<LangVersion>latest</LangVersion> <!-- default to allowing all language features -->
</PropertyGroup>

Expand Down Expand Up @@ -110,6 +112,9 @@
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>

<!-- Don't reference implicit framework packages, all projects in this repo must be explicit -->
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>

<!-- Suppress preview message as we are usually using preview SDK versions. -->
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Packaging.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PreReleaseLabel>preview5</PreReleaseLabel>
<PreReleaseLabel>preview6</PreReleaseLabel>
<PackageDescriptionFile>$(ProjectDir)pkg/descriptions.json</PackageDescriptionFile>
<PackageThirdPartyNoticesFile>$(ProjectDir)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
<ReleaseNotes>https://aka.ms/netstandard-release-notes</ReleaseNotes>
Expand Down
17 changes: 11 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- job: Windows_NT
pool:
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCorePublic-Int-Pool
name: NetCorePublic-Pool
queue: buildpool.windows.10.amd64.vs2017.open
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCoreInternal-Int-Pool
name: NetCoreInternal-Pool
queue: buildpool.windows.10.amd64.vs2017
variables:
# Enable signing for internal, non-PR builds
Expand Down Expand Up @@ -68,9 +68,12 @@ jobs:
steps:
- checkout: self
clean: true
- script: eng\common\cibuild.cmd
- script: build.cmd
-configuration $(_BuildConfig)
-prepareMachine
-sign
-publish
-ci
-warnaserror:0
$(_BuildArgs)
displayName: Windows Build / Publish
Expand All @@ -86,9 +89,10 @@ jobs:
steps:
- checkout: self
clean: true
- script: eng/common/cibuild.sh
- script: ./build.sh
--configuration $(_BuildConfig)
--prepareMachine
--ci
displayName: Linux Build

# OSX leg (only runs in CI)
Expand All @@ -102,7 +106,8 @@ jobs:
steps:
- checkout: self
clean: true
- script: eng/common/cibuild.sh
- script: ./build.sh
--configuration $(_BuildConfig)
--prepareMachine
displayName: OSX Build
--ci
displayName: OSX Build
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore -build %*"
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -restore -build /warnAsMessage:NU1702 %*"
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ while [[ -h $source ]]; do
done

scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
"$scriptroot/eng/common/build.sh" --build --restore $@
"$scriptroot/eng/common/build.sh" --build --restore /warnAsMessage:NU1702 $@
2 changes: 1 addition & 1 deletion docs/versions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .NET Standard Versions

*[Interactive Table](http://immo.landwerth.net/netstandard-versions/#)*
*[Interactive Table](https://dotnet.microsoft.com/platform/dotnet-standard)*

The table below lists all versions of .NET Standard:

Expand Down
7 changes: 5 additions & 2 deletions eng/Tools.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
<!-- source-built packages -->
<ItemGroup>
<!-- arcade -->
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="$(MicrosoftDotNetApiCompatPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.GenAPI" Version="$(MicrosoftDotNetGenApiPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Packaging" Version="$(MicrosoftDotNetBuildTasksPackagingPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.GenFacades" Version="$(MicrosoftDotNetGenFacadesPackageVersion)" />
</ItemGroup>

<!-- excluded from source build -->
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<!-- arcade -->
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="$(MicrosoftDotNetApiCompatPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.GenAPI" Version="$(MicrosoftDotNetGenApiPackageVersion)" />

<!-- XML docs -->
<PackageReference Include="$(XmlDocPackage)" Version="$(XmlDocPackageVersion)" />

Expand Down
36 changes: 26 additions & 10 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,41 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19218.7">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>5e7ce5b394f3477bb0a485a4b761b7742e95be37</Sha>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19218.7">
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>5e7ce5b394f3477bb0a485a4b761b7742e95be37</Sha>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19218.7">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>5e7ce5b394f3477bb0a485a4b761b7742e95be37</Sha>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19218.7">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>5e7ce5b394f3477bb0a485a4b761b7742e95be37</Sha>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19218.7">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>5e7ce5b394f3477bb0a485a4b761b7742e95be37</Sha>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenFacades" Version="1.0.0-beta.19280.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>7c50d548001a83a18449ad4dda370122ede5fbf6</Sha>
</Dependency>
<Dependency Name="System.Reflection.Emit" Version="4.6.0-preview6.19281.1">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>82408cd90f4d4573d502e8df2ca437b35e6a37f7</Sha>
</Dependency>
<Dependency Name="System.Reflection.Emit.ILGeneration" Version="4.6.0-preview6.19281.1">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>82408cd90f4d4573d502e8df2ca437b35e6a37f7</Sha>
</Dependency>
<Dependency Name="System.Reflection.Emit.Lightweight" Version="4.6.0-preview6.19281.1">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>82408cd90f4d4573d502e8df2ca437b35e6a37f7</Sha>
</Dependency>
<PinnedDependency Name="NETStandard.Library" Version="2.0.3">
<Uri>https://github.com/dotnet/standard</Uri>
Expand Down
12 changes: 8 additions & 4 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
<NetStandardLibraryPackage>netstandard.library</NetStandardLibraryPackage>
</PropertyGroup>
<PropertyGroup>
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19218.7</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19218.7</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19218.7</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19218.7</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19280.2</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19280.2</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19280.2</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19280.2</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>1.0.0-beta.19280.2</MicrosoftDotNetGenFacadesPackageVersion>
<SystemReflectionEmitPackageVersion>4.6.0-preview6.19281.1</SystemReflectionEmitPackageVersion>
<SystemReflectionEmitILGenerationPackageVersion>4.6.0-preview6.19281.1</SystemReflectionEmitILGenerationPackageVersion>
<SystemReflectionEmitLightweightPackageVersion>4.6.0-preview6.19281.1</SystemReflectionEmitLightweightPackageVersion>
<!-- This is the LKG stable version of NetStandard.Library from myget.org. Please don't edit this version -->
<NetStandardLibraryPackageVersion>2.0.3</NetStandardLibraryPackageVersion>
</PropertyGroup>
Expand Down
146 changes: 146 additions & 0 deletions eng/common/LoggingCommandFunctions.ps1
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
}
2 changes: 2 additions & 0 deletions eng/common/PublishToPackageFeed.proj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'TOOLSET'">https://dotnetfeed.blob.core.windows.net/dotnet-toolset/index.json</TargetStaticFeed>
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'WINDOWSDESKTOP'">https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json</TargetStaticFeed>
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'NUGETCLIENT'">https://dotnetfeed.blob.core.windows.net/nuget-nugetclient/index.json</TargetStaticFeed>
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETENTITYFRAMEWORK6'">https://dotnetfeed.blob.core.windows.net/aspnet-entityframework6/index.json</TargetStaticFeed>
<TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETBLAZOR'">https://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json</TargetStaticFeed>
</PropertyGroup>

<Error
Expand Down
Loading