One F # 4.1 compiler includes targetPlatform netstandard, the other doesn't

The F # 4.1 compiler on my build machine has slightly different parameters --targetProfilethan the F # 4.1 compiler on my dev machine.

On my dev machine, when I type fsc.exe -?, the output includes the following:

Microsoft (R) F# Compiler version 4.1
     :
--targetprofile:<string>
Specify target framework profile of this assembly.
Valid values are mscorlib, netcore or netstandard.
     :

On my build server, the same command outputs the following:

Microsoft (R) F# Compiler version 4.1
     :
--targetprofile:<string>
Specify target framework profile of this assembly.
Valid values are mscorlib or netcore.
     :

Note that the dev machine contains netstandardas a valid value, but the build server does not.

Therefore, when I try to build my project on the build server, I get a compile time error " error FS1052: Invalid value 'netstandard' for '--targetprofile'"

What's happening? Is there a way to display the actual version number of the F # 4.1 compiler? fsc.exe --versiondoes not work.

+4
source share
1

, F #, .NET SDK (s). TFM.

mscorlib, netcore or netstandard, , :

  • mscorlib ... Windows
  • netcore, VS 2017 ".NET desktop development"
  • netstandard, NET Core SDK

, , .NET Core SDK , , , netstandard.

+2

Source: https://habr.com/ru/post/1686596/


All Articles