Exception while trying to reference LINQ namespace

Posted by MarceloRamires on Stack Overflow See other posts from Stack Overflow or by MarceloRamires
Published on 2010-03-29T11:59:24Z Indexed on 2010/03/29 12:03 UTC
Read the original article Hit count: 497

Filed under:
|
|
|
|

While trying to use linq in a .NET 2.0 winforms project I got:

Namespace or type specified in the Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases

In both the lines that reference the following namespaces:

System.Linq; System.Xml.Linq;

How could I get these namespaces to work on .NET 2.0 without referencing an external DLL or anything ?

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about .NET