Visual Studio 2015 Edit and Continue duplicates object fields

走远了吗. 提交于 2019-12-11 01:26:21

问题


I am experiencing weird issues during Visual Studio 2015 Community debugging a 32-bit C# application (C# 6, .NET 4.5.2) on Windows 8.1 x64.

If I do a couple of Edit and Continue iterations (i.e. break execution, change something, continue), after a while I will get a weird NullReferenceException thrown for a field which cannot possibly be null. When I then hover over the this instance for the "offending" object, it turns out that there are multiple fields with the same name inside that object (and for each pair of fields, one of them with the expected value, the other one null). This happened a couple of times already, and wasn't fixed after installing VS2015 Update 1 either.

It seems like a Roslyn issue to me, like it has problems recompiling after Edit and Continue. Is this a known issue that has workarounds?

来源:https://stackoverflow.com/questions/34135004/visual-studio-2015-edit-and-continue-duplicates-object-fields

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