MS Virtual Labs: Multi-Targeting in Visual Studio 2008

5 minutes, 16 seconds


Right click “Save as…”

Multi-targeting is a new feature in Visual Studio 2008 that allows developers to choose which .NET Framework they want to target for a given project. Available choices are 2.0, 3.0 and 3.5, and you may change your selection after a project has already been created. The IDE filters selectable features and the build system generates appropriate warnings based on whether a particular feature is available in the target platform.

The purpose of this demo/lab is to show how multi-targeting is implemented in Visual Studio 2008. The lab covers the following topics:

• Multi-targeting in the New Project dialog
• Target Framework-based filtering in Add New Item and Add Reference dialogs
• Target switching via project Properties dialog • Build- and compiler-generated errors and warnings based on Target Framework

Try it


Follow the discussion

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.