Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I made a c# program using Visual studio 2010 but when I run its exe file on another computer I get an error message telling me to install ".NET 4"...

First, is there any way to make my program compatible with previous .NET versions?
(because I don't want to install ".NET 4" on every computer before I run my program on it)

Second, can you provide me with a ".NET 4" setup file for windows XP???

thanks in advance,

You need to change the .NET version you are targeting in your project, see this MSDN article[^] on how to do this.

You can either use the web installer[^] or use the standalone installer[^] for Microsoft Microsoft .NET Framework 4.
Share this answer
Sergey Alexandrovich Kryukov 19-Sep-11 20:12pm    
Correct, my 5.
George_Rasmi 20-Sep-11 6:33am    
this is what I'm looking for :)
thanks Andre
André Kraak 20-Sep-11 6:49am    
Your welcome.
The release built from the VS2010 would have a dependency of .Net Framework 4 so you may not be able to run it on a machine if it does not have framework 4 installed. Actually you can add the framework 4 runtime as part of your project so it gets installed along with the program if you create a package of it but with an exe you would still have the issue.

This is the link for framework 4 installer to download:[^]
Share this answer
George_Rasmi 20-Sep-11 6:33am    
thanks prdshukla :)
that was usefull
Pradeep Shukla 20-Sep-11 8:05am    
ur welcome..

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