繁体   English   中英

可以在Visual Studio 2008中安装Visual Studio 2010包吗?

[英]Can a Visual Studio 2010 Package be installed in Visual Studio 2008?

我想要一个可以在VS2008中加载的Visual Studio包。 为此,我按照以下步骤操作:

  1. 在VS2008中创建了一个新的包项目,并确保它正常加载
  2. 将项目移植到VS2010格式,在那里编译并确保它可以工作。
  3. 然后我将目标框架更改为.NET 4,当我编译时,我得到以下消息: regpkg : error : Could not load file or assembly 'file:///C:\\SVN\\Debugger\\src\\Visualizer2008\\bin\\x86\\Debug\\Visualizer2008.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. regpkg : error : Could not load file or assembly 'file:///C:\\SVN\\Debugger\\src\\Visualizer2008\\bin\\x86\\Debug\\Visualizer2008.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

问题

  1. 首先,是否可以将.NET 4程序包加载到VS2008中?
  2. 如果是,那么我该怎么做才能成功注册?

谢谢!

加载到Visual Studio 2008中的包将始终使用2.0 CLR。 由于不兼容,无法将针对4.0 CLR的内容加载到VS 2008中。 您需要以.NET 3.5或更低版本为目标,才能在2008年加载程序包。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM