Bagikan melalui


How to: Configure Projects to Target Platforms

Visual Studio enables you to set up your applications to target different platforms, including 64-bit platforms. For more information on 64-bit platform support in Visual Studio, see 64-bit Applications.

Targeting Platforms with the Configuration Manager

The Configuration Manager provides a way for you to quickly add a new platform to target with your project. If you select one of the platforms included with Visual Studio, the properties for your project are modified to build your project for the selected platform.

To configure a project to target a 64-bit platform

  1. On the Build menu, click Configuration Manager.

  2. In the Active solution platform list, select the 64-bit platform for the solution to target. If the platform does not exist in the list, select New.

  3. In the New Solution Platform dialog box, select the 64-bit platform for the solution to target.

    Note

    If you create a new name for your configuration, you may have to modify the settings in the Project Designer to target the correct platform.

  4. If you want to copy the settings from a current platform configuration, select the platform configuration to copy settings from, and click OK.

The properties for all projects targetin the 64-bit platform are updated, and the next build of the project will be optimized for 64-bit platforms.

Targeting Platforms in the Project Designer

The Project Designer also provides a way to target different platforms with your project. If selecting one of the platforms included in the list in the New Solution Platform dialog box does not work for your solution, you can create a custom configuration name and modify the settings in the Project Designer to target the correct platform.

Performing this task varies based on the programming language you are using. See the following links for more information:

See Also

Reference

Configuration Manager Dialog Box

New Solution Platform Dialog Box

/platform (C# Compiler Options)

/platform (Visual Basic)

Other Resources

Build Platforms