我知道 VS 2010 有 F# 2.0 和 VS 2012 - F# 3.0。
但是我如何获得 F# 版本号,例如在 F# 交互中?是否有一些命令,例如:#ver;;
?
谢谢。
最佳答案
当您在 VS 中启动 F# Interactive 窗口时,您会看到如下内容:
Microsoft (R) F# 2.0 Interactive build 2.0.5.0
Copyright (c) 2002-2010 Microsoft Corporation. All Rights Reserved.
For help type #help;;
> [Loading init.fsx]
>
其中包括您需要的一切。
要打开 F# 交互窗口,可以按:Ctrl+Alt+F。
更新 (5/16/2018):
VS 2017 中的信息格式似乎发生了一些变化。语言版本终于来了:
Microsoft (R) F# Interactive version 10.1.0 for F# 4.1
Copyright (c) Microsoft Corporation. All Rights Reserved.
关于f# - 如何获取 F# 版本号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10985834/