VS扩展中未处理的异常

时间:2010-08-18 07:07:43

标签: visual-studio vsix

我尝试为自定义文件定义创建语法高亮显示。加载时我得到一个异常。我已将/ log参数添加到devenv以获取日志。


335 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is COMMENT   Editor or Editor Extension 2010/08/18 06:47:56.726 
336 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is STRING   Editor or Editor Extension 2010/08/18 06:47:56.730 
337 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is COMMENT   Editor or Editor Extension 2010/08/18 06:47:57.046 
338 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is STRING   Editor or Editor Extension 2010/08/18 06:47:57.048 
339 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is COMMENT   Editor or Editor Extension 2010/08/18 06:47:57.078 
340 ERROR System.Exception: Duplicate EditorFormatDefinition exports with identical NameAttribute metadata exist. Duplicate name attribute is STRING 

我在代码中找不到任何重复项。如果需要可以提供代码。

祝你好运, 迈克尔

1 个答案:

答案 0 :(得分:6)

您可能已经安装了多个基于相同模板/命名空间/ guid的插件。