Partilhar via


Como: Criar e remover dependências de projeto

When building a solution that contains multiple projects, it can be necessary to build certain projects first, to generate code used by other projects. When a project consumes executable code generated by another project, the project that generates the code is referred to as a project dependency of the project that consumes the code. Tais relações de dependência podem ser definidas na Project Dependencies Dialog Box.

To assign dependencies to projects

  1. In Solution Explorer, select a project.

  2. On the Project menu, choose Project Dependencies.

    The Project Dependencies dialog box opens.

    ObservaçãoObservação

    The Project Dependencies option is only available in a solution with more than one project.

  3. No dependências , selecione um projeto a partir de projeto menu drop-down.

  4. In the Depends on field, select the check box of any other project that must build before this project does.

Sua solução deve consistir em mais de um projeto antes de criar dependências de projeto.

To remove dependencies from projects

  1. In Solution Explorer, select a project.

  2. On the Project menu, choose Project Dependencies.

    The Project Dependencies dialog box opens.

    ObservaçãoObservação

    The Project Dependencies option is only available in a solution with more than one project.

  3. On the Dependencies tab, select a project from the Project drop-down menu.

  4. In the Depends on field, clear the check boxes beside any other projects that are no longer dependencies of this project.

Consulte também

Tarefas

Como: Preparar e gerenciar compilações

Referência

Caixa de Diálogo Configuration Manager

Conceitos

Criar configurações

Gerenciamento de itens em projetos

Projetos como Containers

Outros recursos

Project Dependencies Dialog Box

Project Dependencies, Common Properties, Solution Property Pages Dialog Box

Criando no Visual Studio