VS2015 LINQ in the debugger view

According to my source Debugging a lamba expression with VS2015 , LINQ should work in the debugger viewport. However, I still get the following error:

bug CS1061: 'IEnumerable <MyClass>' does not contain a definition for “Where” and no extension method “Where” that takes the first argument of the type “IEnumerable <MyClass>"; (you did not specify a usage directive or assembly reference?)

Should I enable any option? How to enable LINQ in the viewport? System.Linq enabled through use in the file I'm currently debugging.

+8
c # linq visual-studio visual-studio-2015 watch-window
source share
1 answer

I found the problem: Mono.Cecil-rewritten assemblies do not support evaluating the extension method in the debugger (including LINQ extension methods) at the moment. I will continue this answer as soon as I have a workaround.

Here is a link to the Mono.Cecil GitHub issue: https://github.com/jbevain/cecil/issues/90

+4
source share

All Articles