【问题标题】:Rhino.Mocks with vb.netRhino.Mocks 与 vb.net
【发布时间】:2023-03-24 06:25:02
【问题描述】:

我刚刚在 vs2010 中通过 nuget 包管理器安装了 rhinomocks。

我尝试导入 rhino.mocks

Imports Rhino.Mocks

但它一直在说

"Namespace or type specificed in the Imports 'Rhino.Mocks' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined contains at least one public member. Make sure the imported element name doesn't use any aliases."

有谁知道怎么回事?

我检查了我的项目下的参考资料,我确实看到 Rhino.Mocks 是其中的一部分。

【问题讨论】:

    标签: vb.net visual-studio-2010 rhino-mocks


    【解决方案1】:

    嗯,我刚刚从该站点下载了 rhinomock 3.6 并手动添加了参考并且工作正常。不知道为什么当我通过 nuget 添加它时它不起作用。但是问题解决了!

    【讨论】:

      猜你喜欢
      • 2010-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-16
      • 1970-01-01
      • 2014-02-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多