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. Such dependency relationships can be defined in the Project Dependencies Dialog Box.
To assign dependencies to projects
-
In Solution Explorer, select a project.
-
On the Project menu, choose Project Dependencies.
The Project Dependencies dialog box opens.
Note The Project Dependencies option is only available in a solution with more than one project.
-
On the Dependencies tab, select a project from the Project drop-down menu.
-
In the Depends on field, select the check box of any other project that must build before this project does.
To remove dependencies from projects
-
In Solution Explorer, select a project.
-
On the Project menu, choose Project Dependencies.
The Project Dependencies dialog box opens.
Note The Project Dependencies option is only available in a solution with more than one project.
-
On the Dependencies tab, select a project from the Project drop-down menu.
-
In the Depends on field, clear the check boxes beside any other projects that are no longer dependencies of this project.
See Also
Tasks
How to: Prepare and Manage BuildsReference
Project Dependencies Dialog BoxProject Dependencies, Common Properties, Solution Property Pages Dialog Box
Configuration Manager Dialog Box
Concepts
Build ConfigurationsItem Management in Projects
Projects as Containers