【问题标题】:Adding reference to external .dll on Linux在 Linux 上添加对外部 .dll 的引用
【发布时间】:2010-08-26 04:09:49
【问题描述】:

我正在 Linux 机器上使用 Mono 构建 F# 应用程序,但需要从 F# Power Pack 引用一个 DLL。

我该怎么做?

【问题讨论】:

    标签: dll f# mono reference


    【解决方案1】:

    在 Mono 上添加引用的方式与在 Windows 上完全相同。你只需要下载PowerPack(有一个ZIP download,可以在Linux上解压)。从命令行构建 F# 应用程序时,您只需指定引用:

    mono <fsharp-path>/fsc.exe 
      --resident 
      -r:<powerpack-path>/FSharp.PowerPack.dll 
      input.fs
    

    这应该可以正常工作(注意--resident 选项,它在后台启动 F# 编译器进程,因此它使 Mono 上的 F# 编译器更快,因为它不会在每次启动时再次 JITted)。

    【讨论】:

      猜你喜欢
      • 2019-06-27
      • 1970-01-01
      • 2017-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多