Unhandled exception in VS extension

非 Y 不嫁゛ 提交于 2021-02-09 11:45:09

问题


I have tried creating a syntax highlighter for a custom file definition. I get an exception when its loaded. I have added the /log parameter to devenv to get a log.


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 

I cannot find any duplicates in my code. If needed code can be provided.

Best regards, Michael


回答1:


You have probably installed more than 1 plugin based on the same template/namespace/guid's.



来源:https://stackoverflow.com/questions/3509709/unhandled-exception-in-vs-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!