diff --git a/src/Microsoft.DotNet.Compiler.Common/Executable.cs b/src/Microsoft.DotNet.Compiler.Common/Executable.cs index ef750c9c6..a7b2ca12a 100644 --- a/src/Microsoft.DotNet.Compiler.Common/Executable.cs +++ b/src/Microsoft.DotNet.Compiler.Common/Executable.cs @@ -78,7 +78,7 @@ namespace Microsoft.DotNet.Cli.Compiler.Common WriteDepsFileAndCopyProjectDependencies(_exporter); var emitEntryPoint = _compilerOptions.EmitEntryPoint ?? false; - if (emitEntryPoint && !string.IsNullOrEmpty(_context.RuntimeIdentifier)) + if (emitEntryPoint && !_context.IsPortable) { // TODO: Pick a host based on the RID CoreHost.CopyTo(_runtimeOutputPath, _compilerOptions.OutputName + Constants.ExeSuffix);