コード例 #1
0
		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);
			}
		}
コード例 #2
0
 protected CancelEventArgs OnProjectPostBuild(ProjectInfo proj, bool bFailed)
 {
     if (ProjectPostBuild != null)
     {
         ProjectPostBuildEventArgs args = new ProjectPostBuildEventArgs(proj, bFailed);
         ProjectPostBuild(this, args);
         return(args);
     }
     return(ContinueResponse);
 }
コード例 #3
0
		protected CancelEventArgs OnProjectPostBuild(ProjectInfo proj, bool bFailed)
		{
			if (ProjectPostBuild != null)
			{
				ProjectPostBuildEventArgs args = new ProjectPostBuildEventArgs(proj, bFailed);
				ProjectPostBuild(this, args);
				return args;
			}
			return ContinueResponse;
		}
コード例 #4
0
		void engine_ProjectPostBuild(BuildEngine engine, ProjectPostBuildEventArgs args)
		{
			if (args.BuildFailed)
				args.Cancel = true;
		}