LINQ "cannot resolve symbol" issue (bug?)
I have the following code in a unit test (simplified to be easier to read) :
var item = person.Parents.First(x => x.ParentType == ParentType.Father);
This compiles and all is fine BUT R# complains with squigglies under the LINQ extension method First() and coloring ParentType red. It says "cannot resolve symbol 'ParentType'".
The unit test is in a standard .net 3.5 class library and the code under test is in a .net 2.0 CompactFramework class library.
Parents is a IList<Parent>.
The version of R# I'm running is v4.5.1231.7.
Thanks,
Linus
Please sign in to leave a comment.
Please could you provide small complete example for us to reproduce this problem?
Here it is. One solution with two projects. One of type Smart Device Class Library for Pocket PC 2003 and .NET 2.0. The other one is a standard .NET 3.5 class library and that's where you find the R# error.
Thanks looking into it.
/Linus
Attachment(s):
ResharperIssueCF20.zip
This problem is fixed in ReSharper 5.0.
Thank you for the example.
Actually it seems to not be fixed. At least not in version 5.0.1528.21 that I just installed.
It is fixed in 5.0.1533
Ok I see.
Was I the first to discover the bug, because you fixed it just now?
Just curious
Mixed full/compact framework solutions with LINQ are not the usual case