无法在Visual Studio 2012'ReferenceManagerPackage'中添加引用 [英] Unable to add reference in Visual Studio 2012 'ReferenceManagerPackage'

查看:125
本文介绍了无法在Visual Studio 2012'ReferenceManagerPackage'中添加引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我遇到了此问题,因此,每当我右键单击添加引用..."时, 它给我一个错误,如下所述.

Recently i encountered this issue whereby whenever i right-click "Add Reference..." it give me an error as stated below.

包"ReferenceManagerPackage"无法加载.

Package 'ReferenceManagerPackage' failed to load.

尝试重新安装Visual Studio 2012,但仍然无法正常工作.

Attempted to reinstall Visual studio 2012 however it still doesn't work.

以前没有遇到过这个问题.

hasn't meet this issue before.

512 2013/04/14 00:49:11.860 错误 视觉工作室 包[ReferenceManagerPackage]的CreateInstance失败 {48D4A2C1-02AD-4F18-9153-620511BACB7B}


80131522 无法从程序集'Microsoft.VisualStudio.Shell.Interop.11.0,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'中加载类型'Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager2'.

512 2013/04/14 00:49:11.860 Error VisualStudio CreateInstance failed for package [ReferenceManagerPackage] {48D4A2C1-02AD-4F18-9153-620511BACB7B}


80131522 Could not load type 'Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager2' from assembly 'Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

推荐答案

我以前遇到过此问题.如果我还记得原因,那么基本上,您的gac中就有该特定的二进制文件.我猜您最近更新了Visual Studio.尽管它修补了磁盘上的dll,但仍可能从gac加载了dll,但尚未更新.只需重新注册dll,您就可以了.

I had this issue before. If I remember the reason for this, basically you have that particular binary in your gac. I'm guessing you recently updated Visual Studio. Although it patched the dll on disk, it is likely loading the dll from the gac, which hasn't been updated. Just regac the dll and you should be fine.

编辑

对不起,那是我的坏事. regac不是实际的命令,我只是意味着您必须再次将该项目添加到gac中.

Sorry, that's my bad. regac isn't an actual command,I just mean you have to add the item to the gac again.

启动Visual Studio命令提示符并运行此命令gacutil /i <path_to_assembly>

Start a visual studio command prompt and run this command gacutil /i <path_to_assembly>,

这篇关于无法在Visual Studio 2012'ReferenceManagerPackage'中添加引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆