Adding docker files, modifying scripts and code to handle ubuntu 16.04

This commit is contained in:
Livar Cunha 2016-05-26 12:48:16 -07:00
parent 2fb8656936
commit 84d1b60ffe
56 changed files with 178 additions and 12 deletions

View file

@ -7,6 +7,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
public class BuildPlatformsAttribute : TargetConditionAttribute
{
private IEnumerable<BuildPlatform> _buildPlatforms;
private string _version;
public BuildPlatformsAttribute(params BuildPlatform[] platforms)
{
@ -18,11 +19,17 @@ namespace Microsoft.DotNet.Cli.Build.Framework
_buildPlatforms = platforms;
}
public BuildPlatformsAttribute(BuildPlatform platform, string version)
{
_buildPlatforms = new BuildPlatform[] { platform };
_version = version;
}
public override bool EvaluateCondition()
{
foreach (var platform in _buildPlatforms)
{
if (CurrentPlatform.IsPlatform(platform))
if (CurrentPlatform.IsPlatform(platform, _version))
{
return true;
}