The F # 4.1 compiler on my build machine has slightly different parameters --targetProfile
than 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
:
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
:
Specify target framework profile of this assembly.
Valid values are mscorlib or netcore.
:
Note that the dev machine contains netstandard
as 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 --version
does not work.
source
share