Immediate window extension methods problem

Topics: Developer Forum, User Forum
Jun 3, 2016 at 6:52 PM
Hello.I'm using vs2015 update 2 and i have the following problem.
I'm referencing mvp.xml in my project and have written some code.
Then i try to debug my unit tests and in the immediate window i get for example

allOdds.Elements() error CS1061: 'List<XElement>' does not contain a definition for 'Elements' and no extension method 'Elements' accepting a first argument of type 'List<XElement>' could be found (are you missing a using directive or an assembly reference?)

When i comment out the code that uses the library(i'm still referencing the dll) i have no problems...
Any ideas please?