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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vcharlesAuthor Commented:
Thanks.
0
vcharlesAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.