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:
parent
e27ef0f18c
commit
bbd5f7549e
1 changed files with 0 additions and 3 deletions
|
@ -27,8 +27,6 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
private static string SharedFrameworkNugetVersion { get; set; }
|
private static string SharedFrameworkNugetVersion { get; set; }
|
||||||
|
|
||||||
private static string SharedHostNugetVersion { get; set; }
|
|
||||||
|
|
||||||
[Target]
|
[Target]
|
||||||
public static BuildTargetResult InitPublish(BuildTargetContext c)
|
public static BuildTargetResult InitPublish(BuildTargetContext c)
|
||||||
{
|
{
|
||||||
|
@ -38,7 +36,6 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
CliVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").SimpleVersion;
|
CliVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").SimpleVersion;
|
||||||
CliNuGetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
CliNuGetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
||||||
SharedFrameworkNugetVersion = DependencyVersions.SharedFrameworkVersion;
|
SharedFrameworkNugetVersion = DependencyVersions.SharedFrameworkVersion;
|
||||||
SharedHostNugetVersion = c.BuildContext.Get<HostVersion>("HostVersion").LockedHostVersion;
|
|
||||||
Channel = c.BuildContext.Get<string>("Channel");
|
Channel = c.BuildContext.Get<string>("Channel");
|
||||||
|
|
||||||
return c.Success();
|
return c.Success();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue