private async Task <bool> ComputeHasSuccessfullyLoadedTransitivelyAsync( SolutionState solution, bool hasSuccessfullyLoaded, CancellationToken cancellationToken) { if (!hasSuccessfullyLoaded) { return(false); } foreach (var projectReference in this.ProjectState.ProjectReferences) { var project = solution.GetProjectState(projectReference.ProjectId); if (project == null) { return(false); } if (!await solution.HasSuccessfullyLoadedAsync(project, cancellationToken).ConfigureAwait(false)) { return(false); } } return(true); }
private async Task<bool> ComputeHasSuccessfullyLoadedTransitivelyAsync( SolutionState solution, bool hasSuccessfullyLoaded, CancellationToken cancellationToken) { if (!hasSuccessfullyLoaded) { return false; } foreach (var projectReference in this.ProjectState.ProjectReferences) { var project = solution.GetProjectState(projectReference.ProjectId); if (project == null) { return false; } if (!await solution.HasSuccessfullyLoadedAsync(project, cancellationToken).ConfigureAwait(false)) { return false; } } return true; }