System.LINQ does not exist in the name space
-
I am trying to Learn Linq and when I add the using System.Linq; to my program file I get an error message that the Type or namespce Linq does not exist I have .net 3.5 framework + sp1 and am using VStudio 2008 Project is very simple at this point since it won't compile anyway using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleSerializationTest { class Program { static void Main(string[] args) { } } }
-
I am trying to Learn Linq and when I add the using System.Linq; to my program file I get an error message that the Type or namespce Linq does not exist I have .net 3.5 framework + sp1 and am using VStudio 2008 Project is very simple at this point since it won't compile anyway using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleSerializationTest { class Program { static void Main(string[] args) { } } }
Have you added a reference to System.Data.Linq.dll? Without this reference, you can't use this.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
-
Have you added a reference to System.Data.Linq.dll? Without this reference, you can't use this.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
-
Thanks, I think I figure it partly out, for this project I need to change the Project Properties Target Framework to 3.5 Now need to figure out how to get it to do that be default..
When you create a new project and you are giving it a name and selection the project template type in the top right of the Create Project wizard there is a combo box. Select the Framework and then from that point on it will keep that setting until you change it and then that will become the new default.