f#4.0是否支持.net 3.5?

时间:2015-12-26 18:27:08

标签: f# f#-4.0

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

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

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

1 个答案:

答案 0 :(得分:2)

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

Visual Studio project properties

另一方面,如果选择 .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 Portable Profile 259(portable-net45 + netcore45 + wpa81 + wp8)