【发布时间】:2017-09-29 00:26:35
【问题描述】:
我的构建机器上的 F# 4.1 编译器与我的开发机器上的 F# 4.1 编译器的 --targetProfile 选项略有不同。
在我的开发机器上,当我输入 fsc.exe -? 时,输出包括以下内容:
Microsoft (R) F# Compiler version 4.1
:
--targetprofile:<string>
Specify target framework profile of this assembly.
Valid values are mscorlib, netcore or netstandard.
:
在我的构建服务器上,相同的命令输出以下内容:
Microsoft (R) F# Compiler version 4.1
:
--targetprofile:<string>
Specify target framework profile of this assembly.
Valid values are mscorlib or netcore.
:
请注意,开发机器包含 netstandard 作为有效值,但构建服务器没有。
因此,当我尝试在构建服务器上构建我的项目时,我收到“error FS1052: Invalid value 'netstandard' for '--targetprofile'”的编译时错误
发生了什么事?有没有办法显示 F# 4.1 编译器的 real 版本号? fsc.exe --version 不起作用。
【问题讨论】:
标签: f#