Results 1 to 21 of 21

Thread: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Resolved [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    I have Visual Studio 2008, im using .Net Frameworks 3.5... but no one has them!
    so someone told me I can change something in the settings and use an older .Net Framworks.

    How? What .Net Frameworks should I use? What .Net Frameworks are already installed in WinXP?
    thx

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

    Re: [2008] How to use oldest .Net Framwork possible?

    Windows XP has no versions of the Framework installed by default. Vista has everything up to 2.0 at least and I think it might have 3.0 as well, although I'm not 100% sure.

    Just as happened on XP with .NET 1.0, 1.1 and 2.0, as more and more people start to use applications written for .NET 3.5, more and more people will have .NET 3.5 installed. Just create an installer for your app and it will download and install .NET 3.5 automatically.

    If you're using a full version of VS then you have the option of targeting .NET 2.0, 3.0 or 3.5. If you're using VB Express then I don't think you have the option and can target .NET 3.5 only. I'm not 100% sure about that though.

    If this is really a problem for you then just don't use VB 2008. You can still download VB Express 2005 and use that if you want to. That said, if everyone thought that way then no-one would be using VB 2005 yet either.
    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

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

    Thumbs up Re: [2008] How to use oldest .Net Framwork possible?

    Vista doesnt come with all Framework versions as the 1.0/1.1 versions we previously read at ms, for whatever reasons, are not installed. Vista comes with the 1.0/1.1 "v1.0.3705" and "v1.1.4322" folders in the "C:\Windows\Microsoft.NET\Framework" directory but there are only a few config files in there which isnt the full working set of each version of the FW. This is probably what mislead alot of people.

    So to target the widest audience its recommended to target 2.0 which alot of people on XP will have and ALL Vista users will have 2.0 & 3.0 by default.

    2008 would be better to develop with as you can target 2.0 as John mentioned and if your starting this as a new project then your project files wont need converting like they would if you write this in 2006 and later want to upgrade it to 2008.


    Edit: 50,000 POSTS!!!
    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

  4. #4
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    607

    Re: [2008] How to use oldest .Net Framwork possible?

    i agree with jm.
    as developers we should be advising the audience to use .net 3.5 and "force" installations.

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

    Re: [2008] How to use oldest .Net Framwork possible?

    Its never a good idea to "force" th upgrading or installation of something extra when its not really necessary with 2008. Just target 2.0 and reach a wider audience and get more happy users that dont have to strain their systems with installing another framework version. Of course that is if you are not utilizing freatures in 3.5 only.

    Remember that the original poster is asking for was to lessen the requirement of installing a newer framework version.
    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

  6. #6
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: [2008] How to use oldest .Net Framwork possible?

    The only issue is that even when targeting 2.0 you can't guarantee that the user has the framework installed so you have to account for that in your installer. Since none of the frameworks are guaranteed to be on all of your client's machines then you might as well pick one and install it with your application. Personally I would target 3.5 even if you are not using it's features at the moment. You may decide to later utilize some of the new features and to update your application you would have to install the new framework. If the user had neither 2.0, 3.0 or 3.5 on their machine and you had installed 2.0 initially then you have now installed 2 versions of the framework on their machine.

    Personally I think if you are using 2008, you should always install the 3.5 framework so that once you learn the new features (which are pretty damn cool) you can easily deploy updates using them without having to install another version of the framework in the update.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] How to use oldest .Net Framwork possible?

    If the user doesnt have any framework, then I would make him install .Net Framework 3.5
    But I'm talking if the user already had .Net Framework 2.0
    How can I make my project compile with this framework not 3.5 .Net framework?

    thx

    PS: Im using VS 2008 Professional Edition
    Last edited by perito; Jan 25th, 2008 at 08:06 AM.

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

    Re: [2008] How to use oldest .Net Framwork possible?

    If you're using VS then you would have been asked what version of the Framework you wanted to target when you created the project. If you wanted .NET 2.0 you should have specified .NET 2.0 then. I guess there may well be a way to edit your project to target .NET 2.0 now but I don't know what it is. It would involve editing one or more files by hand. At least the VBPROJ file I would think, and perhaps others. The easiest way would probably be to create a new project and just copy the code files across, removing any .NET 3.5-only code by hand.

    As I've said before, I don't think you have the option of targeting .NET 2.0 with VB Express.

    That said, you say that if the user didn't have any Framework installed you'd have them install version 3.5, but you can't decide what version you want at install time. What about someone who has version 3.5 but not version 2.0? You're going to be forcing them to install another version. I really can't believe that we're up to the fourth version of VS.NET and the fifth version of the .NET Framework and this is still an issue.
    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

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] How to use oldest .Net Framwork possible?

    why cant microsoft just include all the framwrok in the windows installation? this is just stupid...

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

    Re: [2008] How to use oldest .Net Framwork possible?

    Quote Originally Posted by perito
    why cant microsoft just include all the framwrok in the windows installation? this is just stupid...
    Yes, you're right. And the Model T Ford should have had an automatic transmission.

    When Vista was released .NET 3.0 didn't exist, never mind .NET 3.5. When XP was released .NET 2.0 didn't exist. Are you really trying to say that Microsoft are stupid for not including something in Windows that didn't exist when that version of Windows was released? What exactly is your definition of stupid?
    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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] How to use oldest .Net Framwork possible?

    :P oh right
    so they would include .Net Framework 3.5 in the Vista update now... right?
    Im using Visual Studio 2008 Professional Edition
    .Net Framework 3.5

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

    Re: [2008] How to use oldest .Net Framwork possible?

    Yes and no. The .NET Framework has ALWAYS been available via Windows Update. It's not a critical update though, so it's not installed via Automatic Updates. It makes perfect sense that it's not a critical update because it's not critical. There's no point meed to install all five Frameworks if you don't use all five. People have the choice to install all or none. Every Windows user should be visiting Microsoft Update regularly so they should be aware of this, but of course many Windows users simply don't bother with any system maintenance.
    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

  13. #13
    Addicted Member
    Join Date
    Oct 2007
    Posts
    133

    Re: [2008] How to use oldest .Net Framwork possible?

    "What .Net Frameworks should I use?"

    Easy answer: 2.0

    Vista. I recently installed Vista and to me it seemed it came with all the frameworks up to 3.0. Now were they there when i freshly installed Vista? i'm not sure. I let windows run all the updates immediately so they could have come in with that. But they are there now and i didn’t consciously download them so one could say they do come with all frameworks up to 3.0.

    It doesn't come with 3.5 for sure as i put vb2008 on that machine and wow, what a big download 3.5 was and with a reboot to boot.
    Last edited by sytto; Jan 25th, 2008 at 09:59 AM.

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] How to use oldest .Net Framwork possible?

    thanks everyone for replying
    this thread is resolved.
    Im using Visual Studio 2008 Professional Edition
    .Net Framework 3.5

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    @sytto, see my post #3.
    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

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

    Re: [2008] How to use oldest .Net Framwork possible?

    Quote Originally Posted by sytto
    "What .Net Frameworks should I use?"

    Easy answer: 2.0

    Vista. I recently installed Vista and to me it seemed it came with all the frameworks up to 3.0. Now were they there when i freshly installed Vista? i'm not sure. I let windows run all the updates immediately so they could have come in with that. But they are there now and i didn’t consciously download them so one could say they do come with all frameworks up to 3.0.

    It doesn't come with 3.5 for sure as i put vb2008 on that machine and wow, what a big download 3.5 was and with a reboot to boot.
    Obviously every developer should target version 2.0. That way no-one will ever have to install version 3.5. I look forward to the day when we're up to .NET 10.0 but we still recommend targeting version 2.0 because no-one has 10.0 installed yet. Far more people are still using XP than Vista and it didn't have any Frameworks installed, so maybe we shouldn't use .NET at all. If you were happy to have XP users install version 2.0, or even version 1.0 or 1.1 for that matter, why is a Vista user installing version 3.5 any different?
    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

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    In theory yes everyone should target the newest framework and force users to download it but as the question was asked, using 2005 or 2008 with targetting of 2.0 would answer his question.

    You have to know your target audience. If they will be giving alot of issues needing to download 3.5 or if 3.5 isnt supported on their systems (98, ME, 200) then you have no choice but to target the framework that they can use as you cant force a user to buy a new system or updagrde their windows just to run your program.
    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

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    Well, the original questions were:

    1. How to change the Framework being targeted?
    2. What Framework should be targeted?
    3. What Frameworks are installed on XP by default?

    The answers to those questions are:

    1. Via the Advanced options on the Compile property page, which I recently learned from another thread.
    2. 3.5, unless you have a specific reason for doing otherwise.
    3. None.
    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

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    You missed one, the thread title
    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

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    Quote Originally Posted by RobDog888
    You missed one, the thread title
    Get a copy of VS.NET 2002 I guess.
    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

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

    Re: [RESOLVED] [2008] How to use oldest .Net Framwork possible?

    I have a Beta copy of VS 2002. Cant remember which beta version it is but probably cant get an older copy of VB.NET then that.
    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

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