public static BuildTargetResult InitPublish(BuildTargetContext c) { AzurePublisherTool = new AzurePublisher(); DebRepoPublisherTool = new DebRepoPublisher(Dirs.Packages); SharedFrameworkNugetVersion = c.BuildContext.Get <string>("SharedFrameworkNugetVersion"); SharedHostNugetVersion = c.BuildContext.Get <HostVersion>("HostVersion").LockedHostVersion.ToString(); Channel = c.BuildContext.Get <string>("Channel"); BranchName = c.BuildContext.Get <string>("BranchName"); return(c.Success()); }
public static BuildTargetResult InitPublish(BuildTargetContext c) { AzurePublisherTool = new AzurePublisher(); DebRepoPublisherTool = new DebRepoPublisher(Dirs.Packages); SharedFrameworkNugetVersion = c.BuildContext.Get <string>("SharedFrameworkNugetVersion"); SharedHostNugetVersion = c.BuildContext.Get <HostVersion>("HostVersion").LockedHostVersion.ToString(); HostFxrNugetVersion = c.BuildContext.Get <HostVersion>("HostVersion").LockedHostFxrVersion.ToString(); Channel = c.BuildContext.Get <string>("Channel"); CommitHash = c.BuildContext.Get <string>("CommitHash"); // Do not publish symbol packages on a release branch. IncludeSymbolPackages = !c.BuildContext.Get <string>("BranchName").StartsWith("release/"); return(c.Success()); }