Merge branch 'release' into dev
This commit is contained in:
commit
12fff1833f
|
|
@ -79,7 +79,7 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
DeploymentParameters.ApplicationPath =
|
DeploymentParameters.ApplicationPath =
|
||||||
(DeploymentParameters.ServerType == ServerType.IISExpress ||
|
(DeploymentParameters.ServerType == ServerType.IISExpress ||
|
||||||
DeploymentParameters.ServerType == ServerType.IIS) ?
|
DeploymentParameters.ServerType == ServerType.IIS) ?
|
||||||
Path.Combine(DeploymentParameters.PublishedApplicationRootPath, "wwwroot") :
|
DeploymentParameters.PublishedApplicationRootPath :
|
||||||
DeploymentParameters.ApplicationPath;
|
DeploymentParameters.ApplicationPath;
|
||||||
|
|
||||||
Logger.LogInformation($"{DotnetCommandName} publish finished with exit code : {hostProcess.ExitCode}");
|
Logger.LogInformation($"{DotnetCommandName} publish finished with exit code : {hostProcess.ExitCode}");
|
||||||
|
|
|
||||||
|
|
@ -65,14 +65,8 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
File.WriteAllText(DeploymentParameters.ServerConfigLocation, DeploymentParameters.ServerConfigTemplateContent);
|
File.WriteAllText(DeploymentParameters.ServerConfigLocation, DeploymentParameters.ServerConfigTemplateContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
var webroot = DeploymentParameters.ApplicationPath;
|
|
||||||
if (!webroot.EndsWith("wwwroot"))
|
|
||||||
{
|
|
||||||
webroot = Path.Combine(webroot, "wwwroot");
|
|
||||||
}
|
|
||||||
|
|
||||||
var parameters = string.IsNullOrWhiteSpace(DeploymentParameters.ServerConfigLocation) ?
|
var parameters = string.IsNullOrWhiteSpace(DeploymentParameters.ServerConfigLocation) ?
|
||||||
string.Format("/port:{0} /path:\"{1}\" /trace:error", uri.Port, webroot) :
|
string.Format("/port:{0} /path:\"{1}\" /trace:error", uri.Port, DeploymentParameters.ApplicationPath) :
|
||||||
string.Format("/site:{0} /config:{1} /trace:error", DeploymentParameters.SiteName, DeploymentParameters.ServerConfigLocation);
|
string.Format("/site:{0} /config:{1} /trace:error", DeploymentParameters.SiteName, DeploymentParameters.ServerConfigLocation);
|
||||||
|
|
||||||
var iisExpressPath = GetIISExpressPath();
|
var iisExpressPath = GetIISExpressPath();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue