Help with .Net Version on client's PC

Hello,

can an application developed with VS 2010 be force to run with .NET 3.5 or higher, apparently .NET 4.0 comes with Windows 8.0 or higher but most customers are still running lower version of Windows. If possible how do you modify the application to look for .NET 3.5 instead of 4.0?

Thanks,

Victor
vcharlesAsked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
Solution view, (mouse button) right click the project and select properties from the context menu. First tab - application - select the .net version you want as the target framework.
0
 
Dave BaldwinFixer of ProblemsCommented:
.NET Frameworks 3.5 and 4 run on Windows XP but you have to install them, they did not come with it.  If they run on XP, they will run on anything newer.
0
 
David Johnson, CD, MVPOwnerCommented:
in your installer for the application you have to test for the .net framework that your application is designed for and install it if it is not found.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
vcharlesAuthor Commented:
Thanks for the comments, I Think Windows Vista or higher comes with 3.5, just not certain if an app developed  with VS 2010  works with .NET 3.5.
0
 
David Johnson, CD, MVPOwnerCommented:
in visual studio change the application's properties to use .net 3.5 and recompile fixing any errors
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Just in addition to the previous comment.
You can set the targeted .net version in your application properties (even lower than 3.5 if you wished).  Then it compiles and it will work OR the compiler complains - which means you are having code that only comes with a newer version of .net.  In that case just keep incrementing the .net setting until it compiles (or remove the dependancy that is giving problems - eg. if you don't use LINQ then remove the using LINQ declarations).
0
 
vcharlesAuthor Commented:
Hi,

How do i set  the target to .NET 3.5?

Thanks,

V.
0
 
vcharlesAuthor Commented:
Thanks.
0
 
vcharlesAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.