Home > Visual studio > Ordering output of out of order builds in Visual Studio

Ordering output of out of order builds in Visual Studio

So what is an out of order build?

If you’ve got a multi-core processor then your compilation process will be distributed between these processors. One project will be built on one core while another one on a different core. Then all of these obj file will be gathered together during linking.

But one problem is that the output will look mangled, see this output…

Out of order builds

Out of order builds

The numbers on the left 3>, 4> uniquely identify a particular project being compiled. I’ve got two cores so effectively two projects can be compiled in parallel. But this is a mess particularly if you’ve got too many project’s you’ll have a hard time find out related projects, you’ll get tired of scrolling up and down. 🙂

But there is a way to overcome this, at the top of the output window (see above shot) there is a combo “Show output from:”. Change this to “Build Order” from “Build”, now this is how the output will look…

Build output ordered

Build output ordered

Just to be complete; you can enable out of order builds via…

Tools->Options->Projects and Solutions->Build and Run->Maximum number of parallel project builds.

Here is a screenshot of this dialog.

Enable Out Of Order Builds

Enable Out Of Order Builds

So enjoy working in this great IDE (well) ;).

Advertisements
  1. George
    June 13, 2009 at 1:06 am

    Hi,
    It is nice feature, but I have two questions:

    1. How to make Build Order the default way to show the output
    2. How to switch the order when I execute command line build

    Thanks,
    George

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: