XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

The type or namespace name 'Linq' does not exist in the namespace 'System'

Last post 05/07/2009 17:08 by George Clingerman. 1 replies.
  • 05/07/2009 16:57

    The type or namespace name 'Linq' does not exist in the namespace 'System'

    I download the sample of WinForms Series 2: Content Loading and try to add one class(called AkBasicModel). But It appears the error as below:

    Error 2 The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) D:\SVN\AkiraSVN\AkiraXNA\Utility\BasicModel.cs 3

    I am sure that the Rederences include "System", but not include "System.Xml" and "System.Xml.Linq".
    Could somebody tell me how to solve this problem?

    1 using System;  
    2 using System.Collections.Generic;  
    3 using System.Linq;  
    4 using System.Text;  
    5 using Microsoft.Xna.Framework;  
    6 using Microsoft.Xna.Framework.Graphics;  
    7 using Microsoft.Xna.Framework.Content;  
    8 //  
    9 using AkCamera;  
    10  
    11 //reference Book: Learning XNA 3.0 chapter10  
    12  
    13 namespace AkBasicModel  
    14 {  
    15     class BasicModel : Microsoft.Xna.Framework.DrawableGameComponent 
  • 05/07/2009 17:08 In reply to

    Re: The type or namespace name 'Linq' does not exist in the namespace 'System'

    Answer
    Reply Quote
    Delete out the line in your code at the top of the class that says "using System.Linq;" would be the easiest way.
Page 1 of 1 (2 items) Previous Next