Fix OS platform check in SelfHostDeployer

This commit is contained in:
Kiran Challa 2016-05-31 15:54:17 -07:00
parent bb3555c3dc
commit 1433822ec8
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ namespace Microsoft.AspNetCore.Server.Testing
DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr ? ".exe" :
DeploymentParameters.ApplicationType == ApplicationType.Portable ? ".dll" : "";
var executable = Path.Combine(DeploymentParameters.PublishedApplicationRootPath, new DirectoryInfo(DeploymentParameters.ApplicationPath).Name + executableExtension);
if (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
executableName = "mono";
executableArgs = executable;