Merge branch 'release' into dev
This commit is contained in:
commit
5b14b40aad
|
|
@ -59,7 +59,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools
|
||||||
{
|
{
|
||||||
// Forward slashes currently work neither in AspNetCoreModule nor in dotnet so they need to be
|
// Forward slashes currently work neither in AspNetCoreModule nor in dotnet so they need to be
|
||||||
// replaced with backwards slashes when the application is published on a non-Windows machine
|
// replaced with backwards slashes when the application is published on a non-Windows machine
|
||||||
var appPath = Path.Combine(configureForAzure ? @"%home%\site" : ".", appName).Replace("/", "\\");
|
var appPath = Path.Combine(".", appName).Replace("/", "\\");
|
||||||
var logPath = Path.Combine(configureForAzure ? @"\\?\%home%\LogFiles" : @".\logs", "stdout").Replace("/", "\\");
|
var logPath = Path.Combine(configureForAzure ? @"\\?\%home%\LogFiles" : @".\logs", "stdout").Replace("/", "\\");
|
||||||
|
|
||||||
if (!isPortable)
|
if (!isPortable)
|
||||||
|
|
@ -83,7 +83,6 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools
|
||||||
|
|
||||||
SetAttributeValueIfEmpty(aspNetCoreElement, "stdoutLogEnabled", "false");
|
SetAttributeValueIfEmpty(aspNetCoreElement, "stdoutLogEnabled", "false");
|
||||||
SetAttributeValueIfEmpty(aspNetCoreElement, "stdoutLogFile", logPath);
|
SetAttributeValueIfEmpty(aspNetCoreElement, "stdoutLogFile", logPath);
|
||||||
SetAttributeValueIfEmpty(aspNetCoreElement, "startupTimeLimit", "3600");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static XElement GetOrCreateChild(XElement parent, string childName)
|
private static XElement GetOrCreateChild(XElement parent, string childName)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests
|
||||||
<handlers>
|
<handlers>
|
||||||
<add name=""aspNetCore"" path=""*"" verb=""*"" modules=""AspNetCoreModule"" resourceType=""Unspecified""/>
|
<add name=""aspNetCore"" path=""*"" verb=""*"" modules=""AspNetCoreModule"" resourceType=""Unspecified""/>
|
||||||
</handlers>
|
</handlers>
|
||||||
<aspNetCore processPath="".\test.exe"" stdoutLogEnabled=""false"" stdoutLogFile="".\logs\stdout"" startupTimeLimit=""3600""/>
|
<aspNetCore processPath="".\test.exe"" stdoutLogEnabled=""false"" stdoutLogFile="".\logs\stdout"" />
|
||||||
</system.webServer>
|
</system.webServer>
|
||||||
</configuration>");
|
</configuration>");
|
||||||
|
|
||||||
|
|
@ -168,8 +168,8 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests
|
||||||
aspNetCoreElement.Elements().Remove();
|
aspNetCoreElement.Elements().Remove();
|
||||||
|
|
||||||
Assert.True(XNode.DeepEquals(
|
Assert.True(XNode.DeepEquals(
|
||||||
XDocument.Parse(@"<aspNetCore processPath=""%home%\site\test.exe"" stdoutLogEnabled=""false""
|
XDocument.Parse(@"<aspNetCore processPath="".\test.exe"" stdoutLogEnabled=""false""
|
||||||
stdoutLogFile=""\\?\%home%\LogFiles\stdout"" startupTimeLimit=""3600""/>").Root,
|
stdoutLogFile=""\\?\%home%\LogFiles\stdout"" />").Root,
|
||||||
aspNetCoreElement));
|
aspNetCoreElement));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -182,7 +182,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests
|
||||||
|
|
||||||
Assert.True(XNode.DeepEquals(
|
Assert.True(XNode.DeepEquals(
|
||||||
XDocument.Parse(@"<aspNetCore processPath=""dotnet"" arguments="".\test.exe"" stdoutLogEnabled=""false""
|
XDocument.Parse(@"<aspNetCore processPath=""dotnet"" arguments="".\test.exe"" stdoutLogEnabled=""false""
|
||||||
stdoutLogFile="".\logs\stdout"" startupTimeLimit=""3600""/>").Root,
|
stdoutLogFile="".\logs\stdout"" />").Root,
|
||||||
aspNetCoreElement));
|
aspNetCoreElement));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -198,7 +198,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests
|
||||||
|
|
||||||
Assert.True(XNode.DeepEquals(
|
Assert.True(XNode.DeepEquals(
|
||||||
XDocument.Parse(@"<aspNetCore processPath=""dotnet"" arguments="".\test.exe"" stdoutLogEnabled=""false""
|
XDocument.Parse(@"<aspNetCore processPath=""dotnet"" arguments="".\test.exe"" stdoutLogEnabled=""false""
|
||||||
stdoutLogFile="".\logs\stdout"" startupTimeLimit=""3600""/>").Root,
|
stdoutLogFile="".\logs\stdout"" />").Root,
|
||||||
aspNetCoreElement));
|
aspNetCoreElement));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue