【问题标题】:How to add an Iterop in Visual Studio 2010 like you can in Visual Studio 2008如何像在 Visual Studio 2008 中一样在 Visual Studio 2010 中添加 Iterop
【发布时间】:2012-03-24 12:17:32
【问题描述】:

有人知道如何像在 Visual Studio 2008 中一样在 Visual Studio 2010 中添加对“C:\Windows\SysWOW64\mqoa30.tlb”的引用吗?

如果我去添加参考,并浏览到这个文件:“C:\Windows\SysWOW64\mqoa30.tlb”这些是不同的结果:

Visual Studio 2008


添加就好了

并创建互操作的东西

Visual Studio 2010

搜索引擎优化的明文错误信息:

Could not add a reference to C:\Windows\SysWOW64\mqoa30.tlb
Could not load file or assembly 'mqoa30.tlb' or one of its dependencies. The module was expected to contain an assembly manifest.
This file may not be a managed assembly.

无法从“添加引用”对话框添加,并且“Microsoft 消息队列 3.0 类型库”未在 COM 类型库中列出。

(注意:我已安装 MSMQ 并且工作正常(通过 NServiceBus)。我运行的是 Windows 7。)


如果您知道如何添加参考,可以告诉我吗?

【问题讨论】:

    标签: visual-studio-2010


    【解决方案1】:

    这是在我的 VS2010 版本上的样子,工作正常。不知道您的屏幕截图可能代表什么,我猜是某种附加组件。

    【讨论】:

    • 有趣...那个插件是微软的“生产力工具”(visualstudiogallery.msdn.microsoft.com/…)。我认为由于它们来自 Microsoft,因此安装起来相当安全。猜我错了。我禁用了 Microsoft 的“生产力工具”,并且能够很好地添加参考。感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-16
    • 1970-01-01
    • 1970-01-01
    • 2011-07-28
    相关资源
    最近更新 更多