Fix build failure in PublishTargets.

InitPublish is trying to access a BuildContext variable that is no longer there. It doesn't need that variable, so removing it.
This commit is contained in:
Eric Erhardt 2016-05-25 22:32:10 -05:00
parent e27ef0f18c
commit bbd5f7549e

View file

@ -27,8 +27,6 @@ namespace Microsoft.DotNet.Cli.Build
private static string SharedFrameworkNugetVersion { get; set; }
private static string SharedHostNugetVersion { get; set; }
[Target]
public static BuildTargetResult InitPublish(BuildTargetContext c)
{
@ -38,7 +36,6 @@ namespace Microsoft.DotNet.Cli.Build
CliVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").SimpleVersion;
CliNuGetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
SharedFrameworkNugetVersion = DependencyVersions.SharedFrameworkVersion;
SharedHostNugetVersion = c.BuildContext.Get<HostVersion>("HostVersion").LockedHostVersion;
Channel = c.BuildContext.Get<string>("Channel");
return c.Success();