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"); }