Fix OS platform check in SelfHostDeployer
This commit is contained in:
parent
bb3555c3dc
commit
1433822ec8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue