gpt4 book ai didi

f# - 部署 F# exe

转载 作者:行者123 更新时间:2023-12-04 10:07:11 24 4
gpt4 key购买 nike

我有一个在 VS2013 中构建的 F# 程序。我打算在安装了 .NET Framework 4.5 的 Windows 2008 R2 服务器上部署它。现在,当我在 Visual Studio 中构建程序时,它会在 debug/bin 目录 (MyProgram.exe) 中创建一个 exe。我是否需要在 exe 中包含 fharp.core.dll 的副本?或者,构建过程是否会自动编译必要的依赖 DLL(fsharp.core、fsharp.data、fsharp.data.TypeProviders)?我可以在线搜索的大部分研究似乎都在关注 VS2010,我目前没有使用 fsc,exe。

感谢您提供的任何见解。

最佳答案

您可以使用编译器选项 --standalone静态链接 FSharp.Core.dll(F# 运行时)和任何依赖它的引用程序集(即任何其他 F# 程序集)。

关于f# - 部署 F# exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29303142/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com