Microsoft.VisualStudio.Project.BuildableProjectConfig.Build C# (CSharp) Method

Build() private method

private Build ( uint options, IVsOutputWindowPane output, string target ) : void
options uint
output IVsOutputWindowPane
target string
return void
        private void Build(uint options, IVsOutputWindowPane output, string target)
        {
            if (!this.NotifyBuildBegin())
            {
                return;
            }

            try
            {
                config.ProjectMgr.BuildAsync(options, this.config.ConfigKey, output, target, (result, buildTarget) => this.NotifyBuildEnd(result, buildTarget));
            }
            catch (Exception e)
            {
                Trace.WriteLine("Exception : " + e.Message);
                ErrorHandler.ThrowOnFailure(output.OutputStringThreadSafe("Unhandled Exception:" + e.Message + "\n"));
                this.NotifyBuildEnd(MSBuildResult.Failed, target);
                throw;
            }
            finally
            {
                ErrorHandler.ThrowOnFailure(output.FlushToTaskList());
            }
        }