Disable VSO build of host nupkgs

This commit is contained in:
Senthil 2016-03-30 18:02:29 -07:00
parent 2ce0a934a3
commit 3b6d91b039
2 changed files with 5 additions and 1 deletions

View file

@ -155,6 +155,10 @@ namespace Microsoft.DotNet.Cli.Build
[Target(nameof(CompileCoreHost))]
public static BuildTargetResult PackageCoreHost(BuildTargetContext c)
{
if (!string.Equals(Environment.GetEnvironmentVariable("BUILD_COREHOST_PACKAGES"), "1"))
{
return c.Success();
}
var buildVersion = c.BuildContext.Get<BuildVersion>("BuildVersion");
var versionTag = buildVersion.ReleaseSuffix;
var buildMajor = buildVersion.CommitCountString;

View file

@ -96,7 +96,7 @@ namespace Microsoft.DotNet.Cli.Build
[Target]
public static BuildTargetResult PublishCoreHostPackages(BuildTargetContext c)
{
foreach (var file in Directory.GetFiles(Path.Combine(Dirs.Corehost, "*.nupkg")))
foreach (var file in Directory.GetFiles(Dirs.Corehost, "*.nupkg"))
{
var hostBlob = $"{Channel}/Binaries/{CliNuGetVersion}/{Path.GetFileName(file)}";
AzurePublisherTool.PublishFile(hostBlob, file);