Fix versioned BuildPlatforms logic
This commit is contained in:
parent
2155a419ad
commit
20f9811741
4 changed files with 11 additions and 11 deletions
|
@ -93,7 +93,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
|||
|
||||
public static bool IsPlatform(BuildPlatform platform, string version = null)
|
||||
{
|
||||
return IsPlatform(platform) && IsVersion(version);
|
||||
return IsPlatform(platform) && (version == null || IsVersion(version));
|
||||
}
|
||||
|
||||
public static bool IsPlatform(BuildPlatform platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue