簡體   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