diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs index 0d62724194..6d69ac5393 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs +++ b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs @@ -70,7 +70,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools private static void AddApplicationBase(XElement aspNetCoreElement) { - const string appBaseKeyName = "ASPNET_APPLICATIONBASE"; + const string appBaseKeyName = "ASPNETCORE_APPLICATIONBASE"; var envVariables = GetOrCreateChild(aspNetCoreElement, "environmentVariables"); var appBaseElement = envVariables.Elements("environmentVariable").SingleOrDefault(e => diff --git a/src/dotnet-publish-iis/WebConfigTransform.cs b/src/dotnet-publish-iis/WebConfigTransform.cs index 7a0a209cbd..56ceee4ff8 100644 --- a/src/dotnet-publish-iis/WebConfigTransform.cs +++ b/src/dotnet-publish-iis/WebConfigTransform.cs @@ -70,7 +70,7 @@ namespace Microsoft.AspNetCore.Tools.PublishIIS private static void AddApplicationBase(XElement httpPlatformElement) { - const string appBaseKeyName = "ASPNET_APPLICATIONBASE"; + const string appBaseKeyName = "ASPNETCORE_APPLICATIONBASE"; var envVariables = GetOrCreateChild(httpPlatformElement, "environmentVariables"); var appBaseElement = envVariables.Elements("environmentVariable").SingleOrDefault(e => diff --git a/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs b/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs index b21aaf340e..7d56a8c3f4 100644 --- a/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs +++ b/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs @@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests - + diff --git a/test/dotnet-publish-iis.Tests/WebConfigTransformFacts.cs b/test/dotnet-publish-iis.Tests/WebConfigTransformFacts.cs index d7bdf4ed3c..59082925f3 100644 --- a/test/dotnet-publish-iis.Tests/WebConfigTransformFacts.cs +++ b/test/dotnet-publish-iis.Tests/WebConfigTransformFacts.cs @@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Tools.PublishIIS.Tests - +