Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way to convert .net 4.0 to .net 2.0 in c#? I'm making a Webkit Browser in C# and I want it compatible with Windows XP.

BIG Update:
- I'm using Windows 7
- If I change the Framework of this, my reference for the program will mess up! Any suggestions?



Thanks,
Almar Mike
Posted
Updated 29-Apr-12 15:08pm
v4

You can install and run .net 4 on Windows XP without problems.

If however you need to compile to .net 2, you can use SharpDevelop http://www.icsharpcode.net/[^] which will do the project conversion (changing .net 4 specific stuff you will have to do yourself).
 
Share this answer
 
You can run a .Net 4.0 project in 2.0 if you have not used any programming constructs that have been introduced in 2.0 and 3.0.
If not, then you need to manually changes these lines of code to make this code compatible to run on .Net 2.0.

Some information on framework compatibility here[^].
 
Share this answer
 
all framework versions run in windows xp.
if u r using visual studio
1.open properties present in solution explorer.
2.in application tab, change the Target Framework value to .net framework 2.0

note:-I suggest not to do so because since u have build the application in .net 4
it may contain features which are not in .net 2.0 and thus your application may not work in .net 2.0
 
Share this answer
 
Comments
sunroars2009 29-Apr-12 6:36am    
Rebuild your application using framework 2.0, it will break while compilation if you have used any 3.0/4.0 features. You may rework on those functionality using 2.0 features, rebuild you application and your should be good then.
Almar Mike 29-Apr-12 9:52am    
I'm using Windows 7
Silent Guardian 29-Apr-12 12:44pm    
why do u wanna go back to .net 2.0
.net 4.0 works with every windows operating system released after windows xp.

note:-works with windows xp service pack 3 (sp3) and not with service pack 2.

automatic updates will update it to sp3.

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