Did you know… How to change the build order for your solution? – #333


For managed projects, you can control their build order via the IDE. Right-click on the project in the Solution Explorer, and select Project Dependencies.

Project Dependencies context menu command

This will pop up the Project Dependencies dialog.

Project Dependencies dialog

Now you can say who depends on whom, but if you try to create a circular dependency, we’ll catch ya!

image

Looks like someone forgot the period in the sentence. =)

You can also do the same from Solution Properties, but you can’t view the build order. So maybe that justifies tomorrow’s tip.

Solution Properties - Project Dependencies

Technorati Tags: VS2005Tip,VS2008Tip

Comments (6)

  1. Simon says:

    …and by using project references instead of file references build order will be taken care of automagically.

    <shameless plug>

    And, should you so feel inclined, you can view your references using Dependency Visualizer (http://codeplex.com/dependencyvisualizer) created by me

    </shameless plug>

  2. al says:

    When defining dependencies in Visual C++, the project that depends on some other project will want to link against its dependency. Even if that dependency does not produce a .lib file. How do you disable that automagic linking?

  3. Roman says:

    I want to see some projects in my solution at the top.

    How to change <b>view</b> order of projects in solution?

  4. My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Channel 9 Stuff: Anders Hejlsberg and Guy Steele- Concurrency and Language Design The Concurrency Runtime- Fine Grained Parallelism