I've written some Visual Studio extensions that support VS2012+VS2013. I'd like to use F# in them; and I'm a little confused about the target runtimes...
I'm targetting .NET 4.5 (not 4.5.1), but I can also select between F# 3.0 and 3.1. I'm aware F# 3.1 shipped with VS2013 (and .NET 4.5.1), so I'm not sure if:
(Targetting 3.0 is no big deal; there doesn't seem to be a massive amount in 3.1; but it'd be useful to know how these things relate).
To answer 1:
Can I use F# 3.1 and .NET 4.5, or does F# 3.1 require .NET 4.5.1? (VS lets me pick this combination)
Yes, you can
To answer 2:
You can open and work with F# projects that were created in Visual Studio 2013 or Visual Studio 2012 in either version of Visual Studio, without making any modifications. The only exception is that, the first time that you open a Visual Studio 2012 project in Visual Studio 2013, Visual Studio makes a small change to enable the project to be used in both versions. This capability is known as round-tripping. You can specify which version of the F# runtime (and core library) you want to target on the Application tab of the project’s properties. Choose F# 3.0 if you’re creating a library that must run in many contexts or you want to participate in project round-tripping. If you choose F# 3.0, you won't be able to use any of the language features that are new in F# 3.1, such as named union cases and enhanced array slicing. If you change the target runtime to F# 3.1, you can’t reopen the project in Visual Studio 2012.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With