在Visual Studio 11中注册软件包时出错 [英] Error registering package in Visual Studio 11

查看:77
本文介绍了在Visual Studio 11中注册软件包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将Visual Studio插件改编为新版本VS 2012,但存在以下问题:

We are adapting our Visual Studio plugin to the new version VS 2012 and we have the following problem:

当我尝试在Visual Studio 11 RC中使用regpkg注册Visual Studio程序包时,出现以下错误:

when I try to register a visual studio package using regpkg in Visual Studio 11 RC, I get the following error:

regpkg.exe /root:Software\Microsoft\VisualStudio\11.0 /codebase myvspackage.dll
Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified.

这在Visual Studio的早期版本中运行良好.我正在一个只有Visual Studio 2012 RC的干净虚拟机中工作.

This worked fine with previous versions of Visual Studio. I'm working in a clean virtual machine that only has Visual Studio 2012 RC.

我一直在网上寻找解决方案,但没有成功.

I've been surfing the web looking for a solution with no success.

如果我只是在应用程序位置复制Microsoft.VisualStudio.Shell.dll,它就可以正常工作,但是无法重新分发该dll,所以...在Visual Studio 11中注册包的正确方法是什么?

If I just copy the Microsoft.VisualStudio.Shell.dll in my app location it works fine, but this dll is not redistributable, so... what's the right way of registering a package in Visual Studio 11?

预先感谢您的帮助,

路易斯

推荐答案

似乎您的项目中有一些错误的已解析引用.

It seems you have some wrong resolved referencies in your projects.

尝试删除它们,然后通过添加引用"将其重新添加.然后重新构建(表示清理+构建)您的程序包,然后重试.

Try to remove them and add them back via Add Reference. Then re-build (means clean + build) your package and try again.

请随时向我们发布此问题.

Please keep us posted on this issue.

谢谢!


这篇关于在Visual Studio 11中注册软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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