我开了一个玩笑(大约6个月前),我在同事PC上修改了异常文件,这样当一个NullReferenceException被抛出时,他就会得到一个有趣的麻烦--我们有个笑话说他在地下室里砍东西……
在忘记了这一点之后,现在6个月过去了,这个错误已经出现了,虽然是的,它很有趣,它也需要修复和改变回来。
有什么办法把它改回来吗?或者应该是什么文件?我所有的googling似乎都指向了文件异常。
(想知道它看上去怎么样.)

发布于 2013-10-31 11:40:46
包含VS2012自定义故障排除提示的文件是:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ExceptionAssistantContent\1033\DefaultContent.xmlNullReferenceException块应该是这样的:
<Exception>
<Type>System.NullReferenceException</Type>
<Tip HelpID="EHNullReference">
<Description>Use the "new" keyword to create an object instance.</Description>
</Tip>
</Exception>
<Exception>
<Type>System.NullReferenceException</Type>
<Tip HelpID="EHNullReference">
<Description>Check to determine if the object is null before calling the method.</Description>
</Tip>
</Exception>恶作剧的功劳,我得记住那一次!
https://stackoverflow.com/questions/19705361
复制相似问题