protected override Task <bool> BuildProject() { var taskSource = new TaskCompletionSource <bool>(); var updateSolutionEvents = new VsUpdateSolutionEvents(_buildManager, taskSource); // Build the project. When project build is done, set the task source as being done. // (Either succeeded, cancelled, or failed). _dte.ExecuteCommand("Build.BuildSelection"); return(taskSource.Task); }
protected override Task<bool> BuildProject() { var taskSource = new TaskCompletionSource<bool>(); var updateSolutionEvents = new VsUpdateSolutionEvents(_buildManager, taskSource); // Build the project. When project build is done, set the task source as being done. // (Either succeeded, cancelled, or failed). _dte.ExecuteCommand("Build.BuildSelection"); return taskSource.Task; }