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

How to set F# 4.0 in Visual Studio?

我刚刚安装了 F# 4.0 (FSharpBundle)。如何让visual studio2013使用新版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;;

> 

powershell 的新版本:

// PS C:\Program Files (x86)\Microsoft SDKs\F#.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;;                                       

> 

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

您可以在其上下载 RC 版本(最新的 public 版本)here. This comes with fairly new F# stuff, and you can install the latest dev builds from https://github.com/Microsoft/visualfsharp/releases

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