【发布时间】:2012-03-21 18:16:11
【问题描述】:
您好想知道如何让 f# 编译器自动打开命名空间。
我有
namespace XXX
I have to add something here do(AutoOpen("XXX.YYY")) or something like that to make the XXX.YYY module to be opened when referencing the library from external projects.
[<AutoOpen>]
module YYY =
....
谢谢
【问题讨论】:
-
为什么需要这样做?自动打开模块对你来说还不够吗?
-
不,我希望一旦我从外部项目中引用了库,XXX.YYY 的路径就会自动打开,我可以访问模块 XXX.YYY 中的函数我知道它正在寻找就像我的代码 sn-p 中的一样,但我不记得了
标签: f# module namespaces