Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
 How to: Create and Remove Project D...
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
How to: Create and Remove Project Dependencies

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

  1. In Solution Explorer, select a project.

  2. On the Project menu, choose Project Dependencies.

    The Project Dependencies dialog box opens.

    et61xzb3.alert_note(en-us,VS.90).gifNote:

    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, select the check box of any other project that must build before this project does.

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.

    et61xzb3.alert_note(en-us,VS.90).gifNote:

    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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker