From b7c4d51d0a1b97b18a45db2e655a21bbd7fdcfde Mon Sep 17 00:00:00 2001 From: Sridhar Periyasamy Date: Wed, 17 Feb 2016 10:40:34 -0800 Subject: [PATCH] Add the 'CONFIGURATION' env var to Publish targets. --- scripts/dotnet-cli-build/PublishTargets.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dotnet-cli-build/PublishTargets.cs b/scripts/dotnet-cli-build/PublishTargets.cs index 881b62ac3..5c25f813b 100644 --- a/scripts/dotnet-cli-build/PublishTargets.cs +++ b/scripts/dotnet-cli-build/PublishTargets.cs @@ -26,6 +26,7 @@ namespace Microsoft.DotNet.Cli.Build // Set up the environment variables previously defined by common.sh/ps1 // This is overkill, but I want to cover all the variables used in all OSes (including where some have the same names) var buildVersion = c.BuildContext.Get("BuildVersion"); + var configuration = c.BuildContext.Get("Configuration"); var env = new Dictionary() { { "RID", PlatformServices.Default.Runtime.GetRuntimeIdentifier() }, @@ -48,7 +49,8 @@ namespace Microsoft.DotNet.Cli.Build { "COMMIT_COUNT_VERSION", buildVersion.CommitCountString }, { "DOTNET_CLI_VERSION", buildVersion.SimpleVersion }, { "DOTNET_MSI_VERSION", buildVersion.GenerateMsiVersion() }, - { "VersionSuffix", buildVersion.VersionSuffix } + { "VersionSuffix", buildVersion.VersionSuffix }, + { "CONFIGURATION", configuration } }; if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))