Convert all CLI build targets to MSBuild Tasks. (#3690)

This commit is contained in:
Eric Erhardt 2016-06-24 13:06:13 -05:00 committed by Piotr Puszkiewicz
parent 0c9617559e
commit 15b2a9d9db
17 changed files with 687 additions and 565 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.DotNet.InternalAbstractions;
@ -105,6 +106,11 @@ namespace Microsoft.DotNet.Cli.Build.Framework
return IsPlatform(platform) && (version == null || IsVersion(version));
}
public static bool IsAnyPlatform(params BuildPlatform[] platforms)
{
return platforms.Any(p => IsPlatform(p));
}
public static bool IsPlatform(BuildPlatform platform)
{
switch (platform)