且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在Visual Studio 2012'ReferenceManagerPackage'中添加引用

更新时间:2023-02-27 11:10:03

我以前遇到过此问题.如果我还记得原因,那么基本上,您的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>,