/// <summary> /// Callback for building the package and feed. /// </summary> /// <param name="context">Context for invoke.</param> private void Build(object context) { try { this.Invoke(new MethodInvoker(this.PrepareBuildUI)); BuildStepMessageHandler messageHandler = new BuildStepMessageHandler(this); this.fabricator.Message += messageHandler.Display; if (this.fabricator.Fabricate(this.buildPath)) { string message = String.Concat("Successfully created application feed: ", this.buildPath); this.Invoke(this.buildProgressCallback, new object[] { message, -1, -1 }); } } finally { this.Invoke(new MethodInvoker(this.EndBuildUI)); } }