/// <summary> /// Run the build pipeline of this build configuration to build the target. /// </summary> /// <returns>The result of the build pipeline build.</returns> public BuildPipelineResult Build() { var pipeline = GetBuildPipeline(); if (!CanBuild(out var reason)) { return(BuildPipelineResult.Failure(pipeline, this, reason)); } var what = !string.IsNullOrEmpty(name) ? $" {name}" : string.Empty; using (var progress = new BuildProgress($"Building{what}", "Please wait...")) { return(pipeline.Build(this, progress)); } }
internal BuildContext(BuildPipelineBase pipeline, BuildConfiguration config, BuildProgress progress = null) : base(pipeline, config) { BuildProgress = progress; }
public BuildPipelineResult Build(BuildConfiguration config, BuildProgress progress = null, Action <BuildContext> mutator = null) => throw null;