Como: Criar soluções multi-projeto

Qualquer solução pode conter um ou mais projetos. Soluções de multiprojetos são criadas adicionando-se em projetos de soluções existentes. Para obter mais informações sobre a criação de soluções, consulte Como: Criar soluções e projetos.

Solutions are created under these circumstances:

  • A new file is added to an empty solution.

  • A project is added to an empty Solution Explorer.

  • A blank solution is added from the Other Project Types, Visual Studio Solutions node of the New Project dialog box.

The framework for the physical association of your solution's files is established when a file or project is created.

Em uma solução de multiprojeto, uma estrutura de arquivo ordenada que reflete com precisão as relações entre projetos e seus arquivos é útil em todo o ciclo de desenvolvimento, especialmente para projetos maiores. For all projects, you can establish a root solution directory where all local files are saved and all projects are, by default, created in folders that bear their names. For more information, see Como: criar pastas para soluções and Gerenciamento de itens em projetos.

ObservaçãoObservação

You can more easily share many related source-controlled projects by creating them in a common solution directory.

Adding Projects to a Solution

You can add either a new project or an existing project to a solution.

To add a new project to a solution

  1. In Solution Explorer, select the solution or the solution folder that you want to add a project to.

  2. On the File menu, point to Add and then click New Project.

  3. Select a Project Type and Template.

You can add an existing project to a solution and then edit that project to meet the requirements of the current solution.

To add an existing project to a solution

  1. In Solution Explorer, select the solution or the solution folder that you want to add a project to.

  2. On the File menu, point to Add and then click Existing Project.

  3. Select the project you want to add to the solution.

ObservaçãoObservação

O Adicionar/novo projeto e O projeto de Add/existente comandos também podem ser acessados clicando-se a solução de Solution Explorer.

Deleting Solutions

You can delete an entire solution permanently, but not by using Visual Studio.

To delete a solution permanently

  1. Before you delete the solution, move any projects that you might want to use again.

  2. Use Windows Explorer to delete the directory that contains the two solution files, .sln and .suo.

Consulte também

Tarefas

Como: criar pastas para soluções

Como: Criar soluções e projetos

Outros recursos

New Project Dialog Box

Add New Project Dialog Box