Reply: System.Linq<[email protected]>

  • Thread starter Thread starter Oleg Polkovsky
  • Start date Start date
O

Oleg Polkovsky

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.
 
Thanks a bunch........
hon123456 wrote:

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
On Monday, April 28, 2008 1:17 AM Jon Skeet [C# MVP] wrote:

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.skeet
C# in Depth: http://csharpindepth.com
 
Thanks alot..........
hon123456 wrote:

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
On Monday, April 28, 2008 1:17 AM Jon Skeet [C# MVP] wrote:

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.skeet
C# in Depth: http://csharpindepth.com
 
Back
Top