From 0d737d5eb81b04778304c9842d1352ff4439ab86 Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 25 Feb 2016 16:12:25 -0800 Subject: [PATCH] Append .exe to executable when deploying published CLR applications --- .../Deployers/SelfHostDeployer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Server.Testing/Deployers/SelfHostDeployer.cs b/src/Microsoft.AspNetCore.Server.Testing/Deployers/SelfHostDeployer.cs index e791dda73d..3016cb72c1 100644 --- a/src/Microsoft.AspNetCore.Server.Testing/Deployers/SelfHostDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.Testing/Deployers/SelfHostDeployer.cs @@ -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 {