我已经使用项目2010的托管包框架为Visual Studio11测试版创建了一个扩展。扩展在Visual Studio 11实验实例中测试时工作正常,但在安装时无法工作。它会出现在Extension Manager中,但不会出现在Visual Studio的About Box中,而且extension创建的新项目也不会出现在new project对话框中。在Visual Studio日志文件中显示以下消息
<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>有没有人知道如何解决这个问题?所有的dlls和其他扩展文件似乎都已就位。
发布于 2012-03-16 20:41:56
我自己找到了结果:在安装过程中必须运行devenv /setup,以确定Visual Studio11是否要扫描扩展。
发布于 2012-03-26 02:09:07
你不应该运行devenv /setup来加载一个新的扩展。如果你有加载问题,我会在求助于那个“大锤”之前检查一些其他的东西。
%appdata%\Microsoft\VisualStudio\11.0ActivityLog.xml文件%localappdata%\Microsoft\VisualStudio\11.0删除ComponentModelCache目录(在执行此操作之前关闭VS )祝好运!
https://stackoverflow.com/questions/9735817
复制相似问题