Specifying a Target Platform

You can specify a target platform for a Visual Studio* solution or an individual project within a solution.

  1. Select a solution or project in Solution Explorer.

  2. Select Build > Configuration Manager.

    • Use the Active solution platform drop-down list to specify the target platform for the whole solution.

    • Use the Platform column to specify the target platform for an individual project within a solution.

  3. To add a platform to the current list of active solution platforms, on the Active solution platform drop-down menu, select <New...>.

    The New Solution Platform dialog box opens.

  4. Type or select a new platform, such as x64, from the new platform drop-down menu.

  5. In Copy settings from: , choose a platform whose settings will be used as a template or choose <Empty>.

  6. If you want the platform to be set for the projects within the solution, select Create new project platforms.

  7. Click OK.

  8. Close the Configuration Manager.

Note

You can also change target platforms from the Visual Studio* toolbar by selecting a platform from the Solution Platforms drop-down selection.

Removing Target Platforms

You can remove a target platform from the Configuration Manager:

  1. Select <Edit...> from the Active solution platform list of options. This opens the Edit Solutions Platforms dialog.

  2. Select a platform and click Remove.

  3. Click Yes in the Confirmation box that appears.

For more complete information about compiler optimizations, see our Optimization Notice.