From bbd5f7549edaa9959f8e8d5e99df7cc891fa5b22 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Wed, 25 May 2016 22:32:10 -0500 Subject: [PATCH] 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. --- build_projects/dotnet-cli-build/PublishTargets.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/build_projects/dotnet-cli-build/PublishTargets.cs b/build_projects/dotnet-cli-build/PublishTargets.cs index 85187f9eb..74cbf6619 100644 --- a/build_projects/dotnet-cli-build/PublishTargets.cs +++ b/build_projects/dotnet-cli-build/PublishTargets.cs @@ -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").SimpleVersion; CliNuGetVersion = c.BuildContext.Get("BuildVersion").NuGetVersion; SharedFrameworkNugetVersion = DependencyVersions.SharedFrameworkVersion; - SharedHostNugetVersion = c.BuildContext.Get("HostVersion").LockedHostVersion; Channel = c.BuildContext.Get("Channel"); return c.Success();