Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2008 &引用;“无法加载基类”;VS2008设计器中出现错误_Visual Studio 2008_Designer - Fatal编程技术网

Visual studio 2008 &引用;“无法加载基类”;VS2008设计器中出现错误

Visual studio 2008 &引用;“无法加载基类”;VS2008设计器中出现错误,visual-studio-2008,designer,Visual Studio 2008,Designer,Visual Studio尝试打开简单类时出错,错误为“设计器检查了文件中的以下类:InstallerSupport--无法加载基类“Microsoft.ManagementConsole.SnapInInstaller” 我已经引用了程序集,项目构建得很好。在我编译的代码上运行installutil时,我也会遇到错误,这可能是相关的。我怀疑我遗漏了一些明显的东西…我想你的答案在msdn论坛上: 这是剪报: “好的,我测试了从C:\WINDOWS\System32使用microsoft.mana

Visual Studio尝试打开简单类时出错,错误为“设计器检查了文件中的以下类:InstallerSupport--无法加载基类“Microsoft.ManagementConsole.SnapInInstaller”


我已经引用了程序集,项目构建得很好。在我编译的代码上运行installutil时,我也会遇到错误,这可能是相关的。我怀疑我遗漏了一些明显的东西…

我想你的答案在msdn论坛上:

这是剪报: “好的,我测试了从C:\WINDOWS\System32使用microsoft.managementconsole.dll(文件版本:5.2.3790.2612Z)进行编译。使用VS2005 compiled后,VS2005会在调试目录中自动添加一个文件调用MMCFxCommon.dll。”

并且我能够使用成功地安装管理单元

所以我回到C:\Program Files\Reference Assembly\Microsoft\mmc\v3.0,找到一个mmcfxcommon.dll(文件版本6.0.6001.16651)

将mmcfxcommon.dll复制到调试文件夹后,安装立即开始


所以最后,我丢失了mmcfxcommon.dll。”

修复了它-我安装了一个更新的SDK,并试图从microsoft.managementconsole.dd版本6.0.6001.17011而不是5.2.3790.3959加载类型。现在我已经逃离了DLL地狱,一切都正常了。

Nope-microsoft.mangementconsole.DLL已经在项目中被引用,设置为“本地复制”并在/debug目录中。没有快乐。