Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

VS2005 and LINQ

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rainer Queck - 20 Feb 2008 08:18 GMT
Hello NG,

Is it possible to use LINQ together with VS2005?
If yes I assume I need some AddIns. Where can I find then?

Thanks for hints and links.

Regards
Rainer Queck
Jon Skeet [C# MVP] - 20 Feb 2008 08:25 GMT
> Is it possible to use LINQ together with VS2005?
> If yes I assume I need some AddIns. Where can I find then?
>
> Thanks for hints and links.

Well, there's all the old betas and CTPs which worked on VS2005 - but
they're all out of date.

Basically you need VS2008.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Marc Gravell - 20 Feb 2008 08:29 GMT
If possible (I haven't tried) it would be extremely tricky; in
particular, to write "where" clauses on IQueryable<T> etc requires the
construction of an "Expression"; this is not something I would want to
have to do routinely, especially for non-trivial queries. The lack of
anon-types would be irritating but not insurmountable.

If you just mean LINQ-to-objects you might *just* be able to get it
working with anon methods instead of using lambdas for the predicates/
selectors, but you'd need to use the long syntax to the extension
methods *and* you'd need to write backwards:
select(orderby(where(from))) [but much longer].

Basically, I wouldn't try it. I strongly suggest using 2008; the
express edition may do most of what you want? Note that in either case
you will want to reference the .NET 3.5 assemblies; you can't avoid
this necessity.

Marc
Rainer Queck - 20 Feb 2008 08:48 GMT
Hello Marc,

thanks for your information. Actually I am using VS2008, but I have a
Classlibrary-Project in use, some one would like to add to his project too.
Unfortunatelly he is still using VS2005 and his "Boss" is - momentarely -
not willing to upgrade to VS2008 :-(

Well I guess if he wants to make use of my library source code, he will have
to extract the code needed and build a library for his own.
Luckily he needs no modules, using LINQ.

Thanks
Rainer Queck

> If possible (I haven't tried) it would be extremely tricky; in
> particular, to write "where" clauses on IQueryable<T> etc requires the
[quoted text clipped - 14 lines]
>
> Marc
Jon Skeet [C# MVP] - 20 Feb 2008 08:58 GMT
> thanks for your information. Actually I am using VS2008, but I have a
> Classlibrary-Project in use, some one would like to add to his project too.
[quoted text clipped - 4 lines]
> to extract the code needed and build a library for his own.
> Luckily he needs no modules, using LINQ.

Hang on - so he doesn't actually need to use LINQ? In that case why
can't he just reference your DLL?

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Rainer Queck - 20 Feb 2008 10:04 GMT
Hello Jon,

> Hang on - so he doesn't actually need to use LINQ? In that case why
> can't he just reference your DLL?
Because he wants to use my source code as well.

Regards
Rainer
Jon Skeet [C# MVP] - 20 Feb 2008 10:09 GMT
> > Hang on - so he doesn't actually need to use LINQ? In that case why
> > can't he just reference your DLL?

> Because he wants to use my source code as well.

You may find the following blog post handy:

http://msmvps.com/blogs/jon.skeet/archive/2007/11/20/vs2005-and-vs2008-
co-existence.aspx

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Ignacio Machin ( .NET/ C# MVP ) - 20 Feb 2008 10:20 GMT
> Hello Marc,
>
[quoted text clipped - 6 lines]
> have to extract the code needed and build a library for his own.
> Luckily he needs no modules, using LINQ.

Now you confused me, what about the original question regarding linq?
Or why is linq mentioned at all ?
Rainer Queck - 20 Feb 2008 10:49 GMT
Hello Ignacio,

> Now you confused me, what about the original question regarding linq?
> Or why is linq mentioned at all ?
In parts of my classlibrary I make use of LINQ, but it is a part not needed
by the "other one".
So it would come in handy, if he could just build his own VS2005 class
librayr by assimilating my code.
But as it looks now, he must remove the parts of my code, which uses LINQ.

Regards
Rainer
viepia@nospam.com - 20 Feb 2008 10:58 GMT
With Microsoft DreamSpark as a student VS2008 should be free.
http://news.xinhuanet.com/english/2008-02/20/content_7633285.htm

Viepia

>Hello Marc,
>
[quoted text clipped - 28 lines]
>>
>> Marc
Ignacio Machin ( .NET/ C# MVP ) - 20 Feb 2008 10:12 GMT
Hi,

Make it simple, download VS2008 Express edition

> Hello NG,
>
[quoted text clipped - 5 lines]
> Regards
> Rainer Queck
Rainer Queck - 20 Feb 2008 10:53 GMT
Hi once more,

> Make it simple, download VS2008 Express edition
Well, the one who wants to use my class library, would like to add it to his
solution which is a "not that small"  project under VS2005 pro AND
because of  his boss, he can't switch to VS2008.

Regards
Rainer

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.