2012-03-16 85 views
0

我已经为Project 2010使用托管包框架创建了Visual Studio 11测试版的扩展。在Visual Studio 11中进行测试时,扩展工作正常实验但安装时无法工作。它出现在扩展管理器中,但不出现在Visual Studio About Box中,而且由扩展创建的新项目也不出现在新建项目对话框中。在Visual Studio日志文件中出现消息为Visual Studio 11测试版安装扩展时出错

<description>Error in Template (C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\...\XYZ_Project_Template.zip), file (XYZ_Project_Template.vstemplate). Unregistered ProjectType (XYZProject). This can be caused by an incorrect ProjectType or because the project type package is not installed.</description> 

有人有关于如何解决此问题的任何线索吗?所有dll和其他扩展文件似乎都已到位。

+0

请注意,该产品还没有名称。此外,“Visual Studio 11”中的“11”并不是指2011年。微软在旧年后不可能命名新产品。 – 2012-03-16 15:12:19

+0

Microsoft在其页面上使用术语“Visual Studio 11 beta”。 http://www.microsoft.com/visualstudio/11/en-us/downloads – mircea 2012-03-19 08:53:22

+0

是的,但他们不使用“Visual Studio 2011测试版”。 Visual Studio 2010的版本号是“10”。 Visual Studio 11的版本号是“11”。就这样。 – 2012-03-19 15:14:24

回答

0

我自己找到结果: 在安装期间必须运行devenv/setup 以确定Visual Studio 11以扫描扩展名。

0

你不应该运行devenv/setup来获得一个新的扩展来加载。如果你有负载问题,我会在诉诸这个“大锤”之前检查其他一些东西。

  • 运行Visual Studio中/ log开关,然后检查ActivityLog.xml文件中%appdata%\Microsoft\VisualStudio\11.0
  • %localappdata%\Microsoft\VisualStudio\11.0(在此之前关闭VS)删除ComponentModelCache目录

祝你好运!