views:

353

answers:

3

Does any know if there is any native mechanism to report on the total solution build time in Visual Studio 2008? You can change the build verbosity to report build times per project as discussed here or report total build time from msbuild but I’d like to see this in the IDE across an entire solution containing many projects. Short of creating custom pre and post build events, does anyone know if there’s any native output for total build time? Thanks!

+2  A: 

MSBuild will show the total build time when you run it from the command prompt, e.g:

> msbuild MySolution.sln
...
Time Elapsed 00:00:36.94
GraemeF
Sure, I’m aware of the command line option, I’m looking for something within VS though so it is visible during normal development.
Troy Hunt
+1  A: 

For the sake of completeness, the correct answer is "No, you can't report on total solution build time directly within Visual Studio".

Troy Hunt
You mean "can't", I think?
Greg Fleming
Yes Greg, my mistake.
Troy Hunt
A: 

I think you could probably hook into the OnBuildBegin and OnBuildDone events

http://visualstudiohacks.com/general/customize-your-project-build-process/

mcintyre321
Thanks, that's an interesting avenue to follow.
Troy Hunt