Convert all CLI build targets to MSBuild Tasks. (#3690)
This commit is contained in:
parent
0c9617559e
commit
15b2a9d9db
17 changed files with 687 additions and 565 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue