From 62fd2c5f119f28e85d4ff367592fe88ceb077bef Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 29 Apr 2016 15:49:33 -0700 Subject: [PATCH] fixes #2760 --- src/Microsoft.DotNet.Compiler.Common/Executable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);