From 57ae360c2300ad8a19074c082632b265559e2cf5 Mon Sep 17 00:00:00 2001 From: Enrico Sada Date: Thu, 11 Feb 2016 13:03:28 +0100 Subject: [PATCH] use DNXCORE50 define to check if target framework is Desktop Best is to use NuGetFramework.IsDesktop method, but i cannot parse the assemblyInfoOptions.TargetFramework as NuGetFramework --- src/dotnet/commands/dotnet-compile-fsc/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dotnet/commands/dotnet-compile-fsc/Program.cs b/src/dotnet/commands/dotnet-compile-fsc/Program.cs index 271ec0987..da332b49b 100644 --- a/src/dotnet/commands/dotnet-compile-fsc/Program.cs +++ b/src/dotnet/commands/dotnet-compile-fsc/Program.cs @@ -108,8 +108,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Fsc } //set target framework - var framework = new NuGetFramework(assemblyInfoOptions.TargetFramework); - if (!framework.IsDesktop()) + if (commonOptions.Defines.Contains("DNXCORE50")) { allArgs.Add("--targetprofile:netcore"); }