void ProjectPostBuild(BuildEngine engine, ProjectPostBuildEventArgs args) { Project proj = args.Project.MsProject; if (proj.IsDirty) { Log.Write(_warningLevel, "Project modified: {0}", proj.FullFileName); proj.Save(proj.FullFileName); } }
protected CancelEventArgs OnProjectPostBuild(ProjectInfo proj, bool bFailed) { if (ProjectPostBuild != null) { ProjectPostBuildEventArgs args = new ProjectPostBuildEventArgs(proj, bFailed); ProjectPostBuild(this, args); return(args); } return(ContinueResponse); }
protected CancelEventArgs OnProjectPostBuild(ProjectInfo proj, bool bFailed) { if (ProjectPostBuild != null) { ProjectPostBuildEventArgs args = new ProjectPostBuildEventArgs(proj, bFailed); ProjectPostBuild(this, args); return args; } return ContinueResponse; }
void engine_ProjectPostBuild(BuildEngine engine, ProjectPostBuildEventArgs args) { if (args.BuildFailed) args.Cancel = true; }