VS 扩展中未处理的异常 [英] Unhandled exception in VS extension

查看:32
本文介绍了VS 扩展中未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试为自定义文件定义创建语法高亮器.加载时出现异常.我已将/log 参数添加到 devenv 以获取日志.

<预><代码>335 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.Duplicate name 属性是 COMMENT Editor 或 Editor Extension 2010/08/18 06:47:56.726336 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.Duplicate name 属性是 STRING Editor 或 Editor Extension 2010/08/18 06:47:56.730337 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.Duplicate name 属性是 COMMENT Editor 或 Editor Extension 2010/08/18 06:47:57.046338 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.Duplicate name 属性是 STRING Editor 或 Editor Extension 2010/08/18 06:47:57.048339 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.Duplicate name 属性是 COMMENT Editor 或 Editor Extension 2010/08/18 06:47:57.078340 错误 System.Exception:存在具有相同 NameAttribute 元数据的重复 EditorFormatDefinition 导出.重复名称属性是 STRING

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

最好的问候,迈克尔

解决方案

您可能安装了超过 1 个基于相同模板/命名空间/guid 的插件.

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

解决方案

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

这篇关于VS 扩展中未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆