System.Linq

  • Thread starter Thread starter hon123456
  • Start date Start date
H

hon123456

Why does the compiler say that 'Linq' does not exist in the 'System'
namespace when specifying a using statement as follows:

using System.Linq;

----
 
I try to add System.Core reference. But I cannot find System.Core
reference in
Reference of Visual Studio 2005. Please Help.
 
hon123456 said:
I try to add System.Core reference. But I cannot find System.Core
reference in
Reference of Visual Studio 2005. Please Help.

VS 2005 is for .NET 2.0 - System.Core is new in .NET 3.5 - you
should be able to find it in VS 2008.

Arne
 
Why does the compiler say that 'Linq' does not exist in the 'System'
namespace when specifying a using statement as follows:

using System.Linq;

I am using Visual Studio 2005. Any method to Add System.Core. I know
System Core is in .Net Framework 3.5. How can I add System.Core to
Visual
Studio 2005. Thanks.
 
hon123456 said:
I am using Visual Studio 2005. Any method to Add System.Core. I know
System Core is in .Net Framework 3.5. How can I add System.Core to
Visual Studio 2005. Thanks.

You can't. You need to use VS2008.

(There may be some hacky way, but it's unlikely to be a good
experience.)
 
Jon said:
You can't. You need to use VS2008.

(There may be some hacky way, but it's unlikely to be a good
experience.)

And if one has to ask about this, then it is not even
worth trying ...

Arne
 
I try to add System.Core reference. But I cannot find System.



hon123456 wrote:

I try to add System.Core reference. But I cannot find System.
29-Apr-08

I try to add System.Core reference. But I cannot find System.Cor
reference i
Reference of Visual Studio 2005. Please Help.

Previous Posts In This Thread:

Re: System.Linq
hon123456 wrote

VS 2005 is for .NET 2.0 - System.Core is new in .NET 3.5 - yo
should be able to find it in VS 2008

Arne

Re: System.Linq

You can't. You need to use VS2008

(There may be some hacky way, but it's unlikely to be a good
experience.

--
Jon Skeet - <[email protected]
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skee
C# in Depth: http://csharpindepth.com

Re: System.Linq
Jon Skeet [C# MVP] wrote

And if one has to ask about this, then it is not eve
worth trying ..

Arne

System.Linq
Why does the compiler say that 'Linq' does not exist in the 'System
namespace when specifying a using statement as follows

using System.Linq

----

I try to add System.Core reference. But I cannot find System.
I try to add System.Core reference. But I cannot find System.Cor
reference i
Reference of Visual Studio 2005. Please Help.

On 4$B7n(B28$BF|(B, $B>e8a(B9$B;~(B35$BJ,(B, hon123456 <peterhon...
I am using Visual Studio 2005. Any method to Add System.Core. I kno
System Core is in .Net Framework 3.5. How can I add System.Core t
Visua
Studio 2005. Thanks.

Reply: System.Linq
I can suggest you an idea how to add the reference to System.Linq in a C# project. I'm not sure if it works in C# 2005, but it solves the problem in C# 2008.

1) Launch the C# 2008 environment and create or open the necessary project.

2) In the Solution Explorer section, find the node with the name of your project and right-click this node. A context menu will appear, and you have to choose the "Add Reference" option in this menu.

3) You'll see a window called "Add Reference". It has some pages (".NET", "COM", etc.). The first page (".NET") must be opened.

4) In the list below, find the component "System.Core", select it and click "OK".

5) Now you may type "using System.Linq" link in the Code Editor.

Linq not seen as a reference
To use it the project must be net 3.5 change in properties and you will see it this is in VS 2008

"System.Core"....in VS#2005
My application in VS# 2005,Is there any way to us
"System.Core"....in VS#2005.Help me..


Submitted via EggHeadCafe - Software Developer Portal of Choice
Server Side Processing in ADO.NET/WCF Data Services
http://www.eggheadcafe.com/tutorial...f-4f6f92a76585/server-side-processing-in.aspx
 
Back
Top