Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the 1> and 2> in the Visual Studio build window?

What are the 1> and 2> in the Visual Studio build window? The number some time goes higher. Processes? Threads? Nesting? I never seen them before and they started showing up on my new machine which now is dual core.

like image 494
Daniel A. White Avatar asked Jun 14 '09 00:06

Daniel A. White


People also ask

What are builds in Visual Studio?

Definition. A build is an option or a menu available in Visual Studio that is capable of performing an incremental build, whereas rebuild is an option or a menu in Visual Studio that cleans and builds the solution from scratch.

Is rebuild the same as clean and build?

For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).

What does build solution do in Visual Studio?

Build Solution - compiles code files (dll and exe) that have changed. Rebuild Solution - Deletes all compiled files and Compiles them again regardless of whether or not the code has changed.

Where do builds go Visual Studio?

By default, Visual Studio builds each project in a solution in its own folder inside the solution. You can change the build output paths of your projects to force all outputs to be placed in the same folder.


2 Answers

They are thread numbers. On multiprocessor machines, VS distributes the build among several threads, and numbers each one. When a thread finishes it can be killed off and a new one started, which is why you see increasing numbers in there.

If you find it annoying that the output from these threads is all mingled together, use the "Build order" option in the "Show output from" dropdown to show each thread's output in one piece.

like image 97
RichieHindle Avatar answered Oct 16 '22 09:10

RichieHindle


It's parallel project builds in VS. >1 all the output from one project and >2 is the output from another project being build.

The option is controled in Tools / Options / Projects and Solutions / Build and Run / Maximum number of parallel project builds. The default on install is normally the number of CPU's are in your system.

If your solution has more than 1 project then up to x number of projects are build in parallel. The projects built in parallel also depends on project dependances as well i.e. dependant projects will not build in parallel.

like image 20
Shane Powell Avatar answered Oct 16 '22 09:10

Shane Powell