コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }