dotnet-installer/build_projects/dotnet-cli-build/CliMonikers.cs
Eric Erhardt 72fa4f6cf3 Fix Ubuntu build break.
Ubuntu is currently broken because we added a new channel, and a switch statement wasn't expecting the new channel.

The fix is to eliminate the switch statement on the channel and always return "dotnet-dev-<version>" for the debian sdk package name.
2016-06-07 18:02:33 -05:00

14 lines
376 B
C#

using Microsoft.DotNet.Cli.Build.Framework;
namespace Microsoft.DotNet.Cli.Build
{
public static class CliMonikers
{
public static string GetSdkDebianPackageName(BuildTargetContext c)
{
var nugetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
return $"dotnet-dev-{nugetVersion}";
}
}
}