Results 1 to 10 of 10

Thread: Adding LINQ support to VS2005

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Question Adding LINQ support to VS2005

    Has anyone tried to add LINQ support to Visual Studio 2005?

    All I've been able to find were articles referencing old CTPs released in 2006 and most of the information I've googled is confusing at best.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Adding LINQ support to VS2005

    From what I have read/seen, LINQ requires 3.5 and nothing I have found for any kind of plugin for 2005. But why go to all that trouble when you can download 2008 and be done with it. 2008 can open / run 2005 projects.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: Adding LINQ support to VS2005

    Quote Originally Posted by RobDog888
    From what I have read/seen, LINQ requires 3.5 and nothing I have found for any kind of plugin for 2005. But why go to all that trouble when you can download 2008 and be done with it. 2008 can open / run 2005 projects.
    I was under the impression, from reading about the LINQ CTP release some time ago that it would directly integrate in VS 2005. I wondered if this was still the case since 3.5 and 3.0 are just layers upon 2.0 anyway.

    Even though VS 2008 will target 2.0, 3.0, or 3.5, there still won't be support for LINQ with 2.0. The issue is not so much converting my projects but whether the 3.5 framework will be available on the server I'm targeting. That normally wouldn't be a problem either but IT isn't very up to speed on Windows updates, especially the optional ones.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Adding LINQ support to VS2005

    Yea with 2005 you would still need 3.5 installed for LINQ but wouldnt get all the built in features in the IDE for it or intellisense.

    Have your app run the 3.5 installer in the background. They wont know for a long time
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: Adding LINQ support to VS2005

    Quote Originally Posted by RobDog888
    Yea with 2005 you would still need 3.5 installed for LINQ but wouldnt get all the built in features in the IDE for it or intellisense.

    Have your app run the 3.5 installer in the background. They wont know for a long time
    Why, Rob, I believe that's the sneakiest idea you've given me in a while...

    but then again, I don't frequent the site as much as I used to.

    This is actually for an Asp.net app so I need it on a dev server. I could install the framework myself, but when the production server has to be rebooted after business hours, I need a good excuse. If I hose anything up, I'll need a get out of jail free card.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Adding LINQ support to VS2005

    Well I wouldnt officially recommend it as you would want to make sure anything that you install on a production server will not interfere or crash anything. It really should be tested on the dev server. You wouldnt want to crash their server or apps and get it thrown in your face.

    I was just kidding with that idea.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Adding LINQ support to VS2005

    I'm not sure LINQ will work in VS2005.... VS2005 can only target the 2.0 FW.... and there were somethings that were added to the VB language in order for LINQ to work (Anonymous types, Lambdas, etc.) that aren't available in 2.0.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Adding LINQ support to VS2005

    Quote Originally Posted by wey97
    Why, Rob, I believe that's the sneakiest idea you've given me in a while...

    but then again, I don't frequent the site as much as I used to.

    This is actually for an Asp.net app so I need it on a dev server. I could install the framework myself, but when the production server has to be rebooted after business hours, I need a good excuse. If I hose anything up, I'll need a get out of jail free card.
    Ask your admin people to install it then. It's all about delegating blame.

    Installing .net 3.5 on a live web server shouldn't pose a problem and shouldn't require a reboot.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Adding LINQ support to VS2005

    But the keyword there is "shouldn't"
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Adding LINQ support to VS2005

    You can't reference the LINQ DLL(s) in VS 2005 and VB 2005 doesn't support the required features that tg mentioned anyway. You'd have to do it all using reflection, which is completely impractical.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width