Merge pull request #3092 from eerhardt/LatestPackages
Update github.com/dotnet/versions when new CLI builds are produced.
This commit is contained in:
commit
85a4e44fa2
7 changed files with 187 additions and 105 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue