views:

108

answers:

3

Does anyone know of any kind of plugin or alert system which will let me know when my compiles are completed? Some of the solutions I work with are gigantic and sometimes the compiles can take 5-20 minutes (depending on the PC). Thus I would like to do something else in the meantime, but I don't want to keep checking back to see if the compile is done. Is there any way to have a windows alert, or flash the screen when the compile is done?

It would let me browse the internet whilst waiting for the compile to finish without worrying that its been complete and I'm just wasting time.

+4  A: 

OnBuildDone

Private Sub BuildEvents_OnBuildDone( _
ByVal Scope As EnvDTE.vsBuildScope, _
ByVal Action As EnvDTE.vsBuildAction) _
Handles BuildEvents.OnBuildDone
'Alert that we finished building!
System.Windows.Forms.MessageBox.Show("Build is complete!")
End Sub

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

Raj Kaimal
Is there any way to do this without using PostBuild events? The reason I ask is because its in a version controlled solution, and most likely not everyone else is going to want this.
Paul
A: 

You could use the Post Build Event Commands.

Here's a tutorial

ChrisF
+5  A: 

Another way is a sound cue. Control Panel + Sound, Sound tab. In the Program Events list, locate the "Microsoft Visual Studio Macros" group, assign sounds to "Build Failed" and "Build Succeeded".

Hans Passant