Append .exe to executable when deploying published CLR applications

This commit is contained in:
John Luo 2016-02-25 16:12:25 -08:00
parent 9b214971f6
commit 0d737d5eb8
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ namespace Microsoft.AspNetCore.Server.Testing
string executableArgs = string.Empty;
if (DeploymentParameters.PublishApplicationBeforeDeployment)
{
executableName = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, new DirectoryInfo(DeploymentParameters.ApplicationPath).Name);
var executableExtension = DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr ? ".exe" : "";
executableName = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, new DirectoryInfo(DeploymentParameters.ApplicationPath).Name + executableExtension);
}
else
{