如何在Visual Studio中设置F#4.0?

Nic*_*ick 5 f#

我刚刚安装了F#4.0(FSharpBundle).如何让visual studio 2013使用新版本的F#?

// From Visual Studio 2013, fsi:
Microsoft (R) F# Interactive version 12.0.30815.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

> 
Run Code Online (Sandbox Code Playgroud)

来自powershell的新版本:

// PS C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0> .\Fsi.exe

Microsoft (R) F# Interactive version 14.0.22312.0           
Copyright (c) Microsoft Corporation. All Rights Reserved.   

For help type #help;;                                       

> 
Run Code Online (Sandbox Code Playgroud)

lat*_*kin 3

F# 4.0 仅在 VS 2015 中受支持,该版本仍处于预发布阶段。

您可以在此处下载 RC 版本(最新的公共版本)。它附带了相当新的 F# 内容,您可以在其上安装来自https://github.com/Microsoft/visualfsharp/releases的最新开发版本。

理论上,如果您使用 VS 12.0 工具链从源代码构建,您仍然可以在 VS 2013 中运行私有 F# 4.0 位。

  • 现在 VS 2015 已经发布了,这个答案还成立吗?2013 年我还不能使用 F# 4.0 吗? (3认同)