Why might “using System.Linq” cause the following error?
The type or namespace name ‘Linq’ does
not exist in the namespace ‘System’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Reference
System.CoreAnd then there are others that merge this namespace too – but that’s the primary one on .Net 3.5 and above.
If you’re project is currently .Net 2.0, say, and you’re using the right version of VS (2005 and above) – you can simply right-click on the proejct properties; and change the ‘Target Framework Version’ to 3.5.
System.Corewill then become available.If you don’t see that in the options – then I guess you’re using an older VS