当一个成功的构建已经完成如何获得通知? [英] How to get notification when a successful build has finished?

查看:128
本文介绍了当一个成功的构建已经完成如何获得通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写一个VS插件和我需要创建成功后运行一定的方法。
我已经尝试过使用 dte.Events.BuildEvents.OnBuildDone 但事件发生,即使构建失败。

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?

推荐答案

该OnBuildDone事件不能告诉你发生了什么。在解决方案中的一些项目可能已经正确建立,有的没有。你需要OnBuildProjConfigDone代替。每个项目的火灾,成功参数告诉你,如果它的工作。

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.

这篇关于当一个成功的构建已经完成如何获得通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆