【发布时间】:2012-04-03 17:14:13
【问题描述】:
对于以下问题,我有什么样的策略。 我想在 dll 中使用一个简单的类,它链接到各种 dll、各种版本等。
作为 fsx 文件,我的脚本没有显示错误。但是在 fsharp 交互式运行它时,它会告诉我
error FS0074: The type referenced through 'theTypeIWantToUse'
is defined in an assembly that is not referenced.
You must add a reference to assembly 'Assembly'.
当然引用了程序集,所以我想我需要添加对它自己引用的 dll 的引用。
有什么方法可以指向编译项目的 dll 环境,它会递归地引用脚本中的关联 dll 吗?
除了手动操作之外,我还有其他策略吗?
最终解决方案
刘涛写了一个插件,如果可以用的话,可以同步。是available here
更新的脚本也存在here 如果愿意,加载仍然需要拓扑加载。
【问题讨论】:
-
请注意,该插件仅适用于 Visual Studio 2012。
标签: f# f#-interactive fsi