Ejemplo n.º 1
0
        public static BuildTargetResult PublishCombinedFrameworkHostInstallerFileToAzure(BuildTargetContext c)
        {
            if (CurrentPlatform.IsUbuntu && !CurrentPlatform.IsVersion("14.04"))
            {
                return(c.Success());
            }

            var version       = SharedFrameworkNugetVersion;
            var installerFile = c.BuildContext.Get <string>("CombinedFrameworkHostInstallerFile");

            AzurePublisherTool.PublishInstallerFile(installerFile, Channel, version);

            return(c.Success());
        }
Ejemplo n.º 2
0
        public static BuildTargetResult PublishSharedHostInstallerFileToAzure(BuildTargetContext c)
        {
            if (CurrentPlatform.IsUbuntu && !CurrentPlatform.IsVersion("14.04"))
            {
                return(c.Success());
            }

            var version       = SharedHostNugetVersion;
            var installerFile = c.BuildContext.Get <string>("SharedHostInstallerFile");

            if (CurrentPlatform.Current == BuildPlatform.Windows)
            {
                installerFile = Path.ChangeExtension(installerFile, "msi");
            }

            AzurePublisherTool.PublishInstallerFile(installerFile, Channel, version);

            return(c.Success());
        }