2

I'm using Microsoft Visual Studio 2010 and .NET4, but I would like to create application(Windows Form Application) that can be also run in .NET2. The reason is that I want it to be very easy to use and portable across many machines and not everybody has .NET4 installed.

Can I do it or do I need to install older version of Visual Studio? Is so what version is the best for most portable .NET app.

5 Answers 5

6

You can modify the target framework in the properties of the project:

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

1

You can select which .NET Framework version you want to target when you create a new project. If you want to change the framework of an existing project, do what Darin has illustrated.

Comments

0

Just modify the target framework by looking at the propeties of the solution you are working on.

I would highly advise you to target .NET 3.5 just based on the age of .NET 2.0.

.NET Framework 2.0 was attached to Visual Studio 2005.

1 Comment

does most WindowXP have 3.5? from your experience.
0

By modifying the target framework is the way, but if you are thinking of portable maybe what you need is some kind of native code that works in every and/or most windows version.

Comments

0

Don't forget to delete redundant namespaces from your namespace list. For example LINQ...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.