'Can I still target .NET Framework 2.0 in Visual Studio 2010?

Before upgrading to Visual Studio 2010, I want to make sure I can still target version 2.0 of the framework. I couldn't find a statement about this from Microsoft. Is it possible?



Solution 1:[1]

Yes, this is possible. It is known as multi-targeting and is a feature most definitely supported in Visual Studio 2010.

Solution 2:[2]

Someone else asked this on The Code Project. The answer is yes. It supports 2.0 -> 4.0.

Solution 3:[3]

Yes

There is a geekswithblogs post showing the multi-targeting functionality.

Solution 4:[4]

This feature was included in Visual Studio 2008 as a way to handle 2.0 through 3.5 projects, so it would be an epic failure on Microsoft's part not to include the same functionality in their next release. With 2010 you should be able to support projects in the 2.0 to 4.0 framework ranges (and beyond possibly depending on the framework upgrades).

Solution 5:[5]

Here is how you change the Target Framework in Visual Studio 2010.

  1. Right click the Project.

  2. Click the "Compile" tab

  3. At the bottom click "Advanced Compile Options..."

  4. Choose the framework from "Target framework (all configurations):"

Solution 6:[6]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Mortensen
Solution 2 Peter Mortensen
Solution 3 Peter Mortensen
Solution 4 TheTXI
Solution 5 Peter Mortensen
Solution 6 Peter Mortensen