From 607ba4aef0d6928ac05b45fa548486f036f4b145 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 14 Apr 2015 16:32:37 -0700 Subject: [PATCH] Overriding the environment variables as some of these environment variables are set on CI machines. --- test/DeploymentHelpers/Deployers/ApplicationDeployer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs b/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs index b07d3b4f1c..185dcb08d7 100644 --- a/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs +++ b/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs @@ -140,15 +140,15 @@ namespace DeploymentHelpers startInfo.Environment; #endif - environment.Add("ASPNET_ENV", DeploymentParameters.EnvironmentName); + environment["ASPNET_ENV"] = DeploymentParameters.EnvironmentName; // Work around for https://github.com/aspnet/dnx/issues/1515 - environment.Add("DNX_PACKAGES", string.Empty); + environment.Remove("DNX_PACKAGES"); environment.Remove("DNX_DEFAULT_LIB"); foreach (var environmentVariable in DeploymentParameters.EnvironmentVariables) { - environment.Add(environmentVariable.Key, environmentVariable.Value); + environment[environmentVariable.Key] = environmentVariable.Value; } }