diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs
index 6d69ac5393..30e0e4c755 100644
--- a/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs
+++ b/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/WebConfigTransform.cs
@@ -70,15 +70,15 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools
private static void AddApplicationBase(XElement aspNetCoreElement)
{
- const string appBaseKeyName = "ASPNETCORE_APPLICATIONBASE";
+ const string contentRootKeyName = "ASPNETCORE_CONTENTROOT";
var envVariables = GetOrCreateChild(aspNetCoreElement, "environmentVariables");
var appBaseElement = envVariables.Elements("environmentVariable").SingleOrDefault(e =>
- string.Equals((string)e.Attribute("name"), appBaseKeyName, StringComparison.CurrentCultureIgnoreCase));
+ string.Equals((string)e.Attribute("name"), contentRootKeyName, StringComparison.CurrentCultureIgnoreCase));
if (appBaseElement == null)
{
- appBaseElement = new XElement("environmentVariable", new XAttribute("name", appBaseKeyName));
+ appBaseElement = new XElement("environmentVariable", new XAttribute("name", contentRootKeyName));
envVariables.AddFirst(appBaseElement);
}
diff --git a/src/dotnet-publish-iis/WebConfigTransform.cs b/src/dotnet-publish-iis/WebConfigTransform.cs
index 56ceee4ff8..5b5e34dec1 100644
--- a/src/dotnet-publish-iis/WebConfigTransform.cs
+++ b/src/dotnet-publish-iis/WebConfigTransform.cs
@@ -70,15 +70,15 @@ namespace Microsoft.AspNetCore.Tools.PublishIIS
private static void AddApplicationBase(XElement httpPlatformElement)
{
- const string appBaseKeyName = "ASPNETCORE_APPLICATIONBASE";
+ const string contentRootKeyName = "ASPNETCORE_CONTENTROOT";
var envVariables = GetOrCreateChild(httpPlatformElement, "environmentVariables");
var appBaseElement = envVariables.Elements("environmentVariable").SingleOrDefault(e =>
- string.Equals((string)e.Attribute("name"), appBaseKeyName, StringComparison.CurrentCultureIgnoreCase));
+ string.Equals((string)e.Attribute("name"), contentRootKeyName, StringComparison.CurrentCultureIgnoreCase));
if (appBaseElement == null)
{
- appBaseElement = new XElement("environmentVariable", new XAttribute("name", appBaseKeyName));
+ appBaseElement = new XElement("environmentVariable", new XAttribute("name", contentRootKeyName));
envVariables.AddFirst(appBaseElement);
}
diff --git a/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs b/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs
index 7d56a8c3f4..a7b31c6097 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 59082925f3..1e22fe311e 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
-
+