代码之家  ›  专栏  ›  技术社区  ›  VitalyB

Visual Studio 2008中是否可以安装Visual Studio 2010包?

  •  0
  • VitalyB  · 技术社区  · 16 年前

    我想要一个在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.

    问题

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

    谢谢!

    1 回复  |  直到 15 年前
        1
  •  2
  •   vcsjones    16 年前

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

    推荐文章