コード例 #1
0
            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);
            }
コード例 #2
0
            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;
            }