Merge pull request #3092 from eerhardt/LatestPackages

Update github.com/dotnet/versions when new CLI builds are produced.
This commit is contained in:
Eric Erhardt 2016-05-18 18:33:58 -05:00
commit 85a4e44fa2
7 changed files with 187 additions and 105 deletions

View file

@ -1,4 +1,5 @@
using System;
using Microsoft.DotNet.Cli.Build.Framework;
namespace Microsoft.DotNet.Cli.Build
{
@ -28,5 +29,16 @@ namespace Microsoft.DotNet.Cli.Build
return defaultValue;
}
}
public static string EnsureVariable(string variableName)
{
string value = Environment.GetEnvironmentVariable(variableName);
if (string.IsNullOrEmpty(value))
{
throw new BuildFailureException($"'{variableName}' environment variable was not found.");
}
return value;
}
}
}