From 0ff309d6d1579a3b8ec3ae84a1c6c7e84b934fef Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 28 Oct 2015 17:19:10 -0700 Subject: [PATCH] Skip exe step for desktop TFM publish --- src/Microsoft.DotNet.Tools.Publish/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Microsoft.DotNet.Tools.Publish/Program.cs b/src/Microsoft.DotNet.Tools.Publish/Program.cs index e14d06876..c46e68193 100644 --- a/src/Microsoft.DotNet.Tools.Publish/Program.cs +++ b/src/Microsoft.DotNet.Tools.Publish/Program.cs @@ -155,6 +155,11 @@ namespace Microsoft.DotNet.Tools.Publish private static int PublishForUnix(ProjectContext context, string outputPath) { + if (context.TargetFramework.IsDesktop()) + { + return 0; + } + var coreConsole = Path.Combine(outputPath, Constants.CoreConsoleName); if(!File.Exists(coreConsole)) {