We help IT Professionals succeed at work.

Help with .Net Version on client's PC

vcharles
vcharles asked
on
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
Comment
Watch Question

Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
.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.
Top Expert 2016

Commented:
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.

Author

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.
Top Expert 2016

Commented:
in visual studio change the application's properties to use .net 3.5 and recompile fixing any errors
AndyAinscowFreelance programmer / Consultant

Commented:
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).

Author

Commented:
Hi,

How do i set  the target to .NET 3.5?

Thanks,

V.
Freelance programmer / Consultant
Commented:
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.

Author

Commented:
Thanks.

Author

Commented:
Thank you.