f# 4.0 是否支持 .net 3.5?

Does f# 4.0 support .net 3.5?

我可以使用 4.0 编译器创建 .net 3.5 dll 吗?

或者最小的 .net 版本是 4.5?

此外,最新版本的 FSharp.Core 可以与 .net 3.5 一起使用吗?

如果您 select .NET Framework 4 作为 Visual Studio 中的目标框架,您可以选择的唯一 F# 版本是 F# 3.0:

另一方面,如果您 select .NET Framework 4.5,选择 F# 4.0 的选项变为也可用。

基于此,.NET 4.5 似乎是 F# 4 的最低版本。不过这只是 Visual Studio 的观点,所以 可能 有可能您可以使用其他开发工具将 F# 4 与旧版本的 .NET 一起使用。

如果您查看 the NuGet page for FSharp.Core 4.0.0.1(目前是最新版本),您会发现它支持这些框架:

  • .NET 2.0
  • .NET 4.0
  • .NET Portable Profile 7 (portable-net45+netcore45)
  • .NET Portable Profile 47 (portable-net45+sl5+netcore45)
  • .NET Portable Profile 78 (portable-net45+netcore45+wp8)
  • .NET 便携配置文件 259 (portable-net45+netcore45+wpa81+wp8)