From a15826399d6a9a9325649044e026cb15da60a260 Mon Sep 17 00:00:00 2001 From: moozzyk Date: Thu, 17 Mar 2016 14:06:29 -0700 Subject: [PATCH] Racting to ASPNETCORE_APPLICATIONBASE -> ASPNETCORE_CONTENTROOT rename --- .../WebConfigTransform.cs | 6 +++--- src/dotnet-publish-iis/WebConfigTransform.cs | 6 +++--- .../WebConfigTransformFacts.cs | 2 +- test/dotnet-publish-iis.Tests/WebConfigTransformFacts.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) 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 - +