Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
i have a app i whant to make it to work with framework 3 - 3.5 ,,, because when i try to run on another computer request framework 4
how i can make to run with 3 -3.5 framework ?
options in vb ? code ?
Posted 1-Dec-11 6:24am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First of all, do you know that one can install .NET Framework v.4.0 on any system where v.3.5 can be installed; and I don't see any reason for not doing it. (This is v.4.5 which cannot be installed on XP.)
 
However, you can re-target your projects to any version starting from v.2.0 (the .NET versions prior to this version hardly can be considered seriously). With Visual Studio, this is just a few clicks per project. Change target framework using the option [Project Properties] => The tab "Application" => "Target Framework".
 
Of course, after you change the target, your project will only compile if you did not use any new features of v.4. However, if you used new features of newer VB.NET version, it's fine, will compile.
 
That's it.
 
—SA
  Permalink  
v2
Comments
Manoj K Bhoir at 1-Dec-11 11:37am
   
My 5!
SAKryukov at 1-Dec-11 11:38am
   
Thank you, Manoj.
--SA
Marcus Kramer at 1-Dec-11 11:55am
   
+5. Complete answer. I know I have target machines in my networks that cannot for legacy dependency reasons not have dotNet 3, 3.5 or 4 installed, so it's very good to mention how to "downgrade" an application as well.
SAKryukov at 1-Dec-11 12:25pm
   
Thank you, Marcus.
Yes, the real blocking reason is having Windows 2000, which I still use, too. It can work only with v.2.0, but I easily create compatible assemblies using VS 2008 or 2010, as in all my articles (yet another reason to downgrade is preparing of CodeProject publications; a nice published code provides solutions for all compatible platforms).
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 1 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100