Racting to ASPNETCORE_APPLICATIONBASE -> ASPNETCORE_CONTENTROOT rename

This commit is contained in:
moozzyk 2016-03-17 14:06:29 -07:00
parent 712b6f78bb
commit a15826399d
4 changed files with 8 additions and 8 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests
</handlers>
<aspNetCore processPath=""..\test.exe"" stdoutLogEnabled=""false"" stdoutLogFile=""..\logs\stdout.log"" startupTimeLimit=""3600"">
<environmentVariables>
<environmentVariable name=""ASPNETCORE_APPLICATIONBASE"" value=""."" />
<environmentVariable name=""ASPNETCORE_CONTENTROOT"" value=""."" />
</environmentVariables>
</aspNetCore>
</system.webServer>

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Tools.PublishIIS.Tests
</handlers>
<httpPlatform processPath=""..\test.exe"" stdoutLogEnabled=""false"" stdoutLogFile=""..\logs\stdout.log"" startupTimeLimit=""3600"">
<environmentVariables>
<environmentVariable name=""ASPNETCORE_APPLICATIONBASE"" value=""."" />
<environmentVariable name=""ASPNETCORE_CONTENTROOT"" value=""."" />
</environmentVariables>
</httpPlatform>
</system.webServer>