add support for type: platform

also some refactoring of DependencyContext to properly handle
placeholders in 'runtimeTargets'.
This commit is contained in:
Andrew Stanton-Nurse 2016-03-17 11:56:57 -07:00
parent 39584c5612
commit 43512b8973
60 changed files with 870 additions and 572 deletions

View file

@ -99,7 +99,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
{
if (target == null)
{
throw new ArgumentNullException("target");
throw new ArgumentNullException(nameof(target));
}
if (target.Conditions == null)
@ -122,7 +122,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
{
if (target == null)
{
throw new ArgumentNullException("target");
throw new ArgumentNullException(nameof(target));
}
var sectionName = $"{target.Name.PadRight(_maxTargetLen + 2).Yellow()} ({target.Source.White()})";