是否有任何网站或书籍解释如何为.net框架进行编译,并在Visual Studio代码中编写F#代码?
The Visual Studio 2017 Build Tools SKU , does not install Visual Studio. It just installs MSBuild and various other compiler toolchains.
Simply select F# from the Individual Components tab (or on the right-hand side in the MSBuild workload) and press Install.
The installation location will be: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp
You can compile for .NET Framework using the .NET Core SDK, actually. You just need to indicate that in your project file (*.fsproj). Where it says something like this:
<TargetFramework>netcoreapp2.2</TargetFramework>
put this instead:
<TargetFramework>net472</TargetFramework>
(or a lower number if you need to target an older framework)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.