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)) {