diff --git a/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs b/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs index f8e767cb03..9c25a351d2 100644 --- a/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs +++ b/test/DeploymentHelpers/Deployers/ApplicationDeployer.cs @@ -142,7 +142,11 @@ namespace DeploymentHelpers environment["ASPNET_ENV"] = DeploymentParameters.EnvironmentName; // Work around for https://github.com/aspnet/dnx/issues/1515 - // environment.Remove("DNX_PACKAGES"); + if (DeploymentParameters.PublishWithNoSource) + { + environment.Remove("DNX_PACKAGES"); + } + environment.Remove("DNX_DEFAULT_LIB"); foreach (var environmentVariable in DeploymentParameters.EnvironmentVariables)