Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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
 
Share this answer
 
v2
Comments
Manoj K Bhoir 1-Dec-11 11:37am    
My 5!
Sergey Alexandrovich Kryukov 1-Dec-11 11:38am    
Thank you, Manoj.
--SA
fjdiewornncalwe 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.
Sergey Alexandrovich Kryukov 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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900