restore the NoPackage switch for VSO signing build

This commit is contained in:
Andrew Stanton-Nurse 2016-02-16 11:39:17 -08:00
parent 9c7ec89392
commit 8fedd2ada3
2 changed files with 26 additions and 2 deletions

View file

@ -14,6 +14,12 @@ namespace Microsoft.DotNet.Cli.Build
[Target(nameof(PrepareTargets.Init))]
public static BuildTargetResult Publish(BuildTargetContext c)
{
if (string.Equals(Environment.GetEnvironmentVariable("DOTNET_BUILD_SKIP_PACKAGING"), "1", StringComparison.Ordinal))
{
c.Info("Skipping packaging because DOTNET_BUILD_SKIP_PACKAGING is set");
return c.Success();
}
// NOTE(anurse): Currently, this just invokes the remaining build scripts as-is. We should port those to C# as well, but
// I want to get the merged in.