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
This commit is contained in:
parent
a2a319c55a
commit
57ae360c23
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue