Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. System.LINQ does not exist in the name space

System.LINQ does not exist in the name space

Scheduled Pinned Locked Moved LINQ
csharplinqhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dwolver
    wrote on last edited by
    #1

    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) { } } }

    P 1 Reply Last reply
    0
    • D dwolver

      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) { } } }

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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

      My blog | My articles | MoXAML PowerToys

      D 1 Reply Last reply
      0
      • P Pete OHanlon

        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

        My blog | My articles | MoXAML PowerToys

        D Offline
        D Offline
        dwolver
        wrote on last edited by
        #3

        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..

        F 1 Reply Last reply
        0
        • D dwolver

          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..

          F Offline
          F Offline
          Fernando Soto
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups