Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Specifying the Runtime Version for an Application

Visual Studio .NET 2003

Applications created in Visual Studio .NET 2003 or later can be set to target one or more versions of the common language runtime by setting the Supported Runtimes property. By default, the latest version of the common language runtime is used; specify a different runtime version if you want your application to run on a previous version of the common language runtime.

Caution   Selecting a previous version of the runtime could cause the application to fail if it references .NET Framework classes that did not exist in the previous version. You should thoroughly test your application against all specified versions. For more information, see Working With Multiple Versions of the .NET Framework.

To specify the runtime version in Visual Basic .NET

  1. Select the project in Solution Explorer.
  2. On the Project menu, choose Properties.
  3. In the Property Pages dialog box, select the Build node and click the Change button.
  4. In the .NET Framework Version dialog box, select a version option and click Update.

To specify the runtime version in Visual C# .NET

  1. Select the project in the Solution Explorer. On the Project menu, choose Properties.
  2. In the Property Pages dialog box, select the Supported Runtimes property and click the Ellipsis (zbe83syc.vxellipsis(en-us,VS.71).gif) button.
  3. In the .NET Framework Version dialog box, select a version option and click Update.

See Also

Working With Multiple Versions of the .NET Framework | Build, Common Properties, <Projectname> Property Pages Dialog Box | Side-by-Side Execution

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft