Como: Configurar projetos para várias plataformas de destino.

Visual Studio 2005Fornece uma maneira para uma solução atingir vários diferentes arquiteturas de CPU ou plataformas, ao mesmo tempo. Para definir essas propriedades são acessadas por meio de Caixa de Diálogo Configuration Manager.

Targeting a Platform

The Configuration Manager dialog box allows you to create and set solution-level and project-level configurations and platforms. Cada combinação de configurações de nível de solução e os destinos pode ter um conjunto exclusivo de propriedades associada, permitindo que você alterne facilmente entre, por exemplo, uma configuração de lançamento que almeja uma x64 plataforma, uma configuração de lançamento que visa uma plataforma x86 e uma configuração de depuração que visa uma plataforma de 86 x.

To set your configuration to target a different platform

  1. On the Build menu, click Configuration Manager.

  2. No caixa de plataforma de solução ativa, selecione a plataforma que você deseja que sua solução de destino ou selecione <New> para criar uma nova plataforma. Para obter informações sobre como usar o Nova plataforma de solução caixa de diálogo, consulte Caixa de Diálogo New Solution Platform.Visual Studio irá compilar seu aplicativo para a plataforma que é definida como a plataforma ativa de destino a Gerenciador de configuração de caixa de diálogo.

Removing a Platform

If you realize that you have no need for a platform, you can remove it using the Configuration Manager dialog box. This will remove all solution and project settings that you configured for that combination of configuration and target.

To remove a platform

  1. On the Build menu, click Configuration Manager.

  2. No caixa de plataforma de solução ativa, selecione <Edit>. The Edit Solution Platforms dialog box opens.

  3. Click the platform you want to remove, and click Remove.

Targeting Multiple Platforms with One Solution

Because you can change the settings based on the combination of configuration and platform settings, you can set up a solution that can target more than one platform.

To target multiple platforms

  1. Use the Configuration Manager to add at least two target platforms for the solution.

  2. Select the platform you want to target from the Active solution platform list.

  3. Build the solution.

To build multiple solution configurations at once

  1. Use the Configuration Manager to add at least two target platforms for the solution.

  2. Use the Batch Build window to build several solution configurations at once. For more information, see Caixa de Diálogo Batch Build.

É possível ter uma plataforma de nível de solução que defina como, por exemplo, x64, e não há projetos dentro dessa solução direcionamento a mesma plataforma. It is also possible to have multiple projects in your solution, each targeting different platforms. It is recommended that if you have one of these situations, you create a new configuration with a descriptive name to avoid confusion.

Consulte também

Tarefas

Como: Criar e editar configurações

Referência

Caixa de Diálogo Configuration Manager

Conceitos

Criar configurações