Alex Rivera | Logout

How to get notification when a successful build has finished?

Asked 2010-05-10T10:44:44.423
12

I'm writing an VS add-in and I need to run a certain method after a successful build. I've tried using dte.Events.BuildEvents.OnBuildDone but that event happens even if the build failed.

Is there a property or some other event I should use?

Edit
Report

1 Answer

13

The OnBuildDone event cannot tell you what happened. Some projects in the solution might have built properly, some didn't. You'll need OnBuildProjConfigDone instead. Fires for each project, the Success argument tells you if it worked.

answered 2010-05-10T12:40:47.643

Your Answer