How can I get Visual Studio to beep at me if a build succeeds?

后端 未结 7 1350
庸人自扰
庸人自扰 2020-12-14 16:58

Often, I need to recompile and it takes a minute or two, so I tend to switch to a web browser to kill that time. Sometimes I forget to look back and the build succeeded a fe

7条回答
  •  -上瘾入骨i
    2020-12-14 17:14

    Here is a macro found at: http://elegantdevelopment.blogspot.com/2009/09/visual-studio-2008-macro-fun.html

    Private Sub BuildEvents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildDone
       If (Not failed) Then
          ' System.Windows.Forms.MessageBox.Show("Build is complete!")
          Beep()
          Threading.Thread.Sleep(250)
          Beep()
       End If
    End Sub
    

    Good luck!

提交回复
热议问题