19 references to ProjectReferences
Microsoft.CodeAnalysis.Workspaces (19)
Workspace\Solution\Project.cs (2)
136public IEnumerable<ProjectReference> ProjectReferences => State.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId)); 142public IReadOnlyList<ProjectReference> AllProjectReferences => State.ProjectReferences;
Workspace\Solution\ProjectState.cs (3)
831/// Determines whether <see cref="ProjectReferences"/> contains a reference to a specified project. 837foreach (var projectReference in ProjectReferences) 848if (projectReferences == ProjectReferences)
Workspace\Solution\ProjectState_Checksum.cs (1)
62var projectReferenceChecksums = ChecksumCache.GetOrCreateChecksumCollection(ProjectReferences, serializer, cancellationToken);
Workspace\Solution\Solution.cs (2)
660if (!oldProject.ProjectReferences.Contains(projectReference)) 1882var hasSubmissionReference = !ignoreExistingReferences && projectState.ProjectReferences.Any(p => this.SolutionState.GetRequiredProjectState(p.ProjectId).IsSubmission);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
497foreach (var projectReference in this.ProjectState.ProjectReferences) 1046foreach (var dependentProjectReference in projectState.ProjectReferences) 1083foreach (var dependentProjectReference in projectState.ProjectReferences)
Workspace\Solution\SolutionState.cs (6)
449.WithAdditionalProjectReferences(projectId, projectState.ProjectReferences); 456foreach (var projectReference in newState.ProjectReferences) 775var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 791var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 1232state.ProjectReferences.Where(pr => GetProjectState(sortedNewProjectStates, pr.ProjectId) != null).Select(pr => pr.ProjectId).ToImmutableHashSet())) 1400=> GetRequiredProjectState(projectId).ProjectReferences.Contains(projectReference);
Workspace\Solution\SolutionState_Checksum.cs (1)
166foreach (var refProject in projectState.ProjectReferences)
Workspace\Solution\StateChecksums.cs (1)
462ChecksumCollection.Find(state.ProjectReferences, ProjectReferences, searchingChecksumsLeft, onAssetFound, arg, cancellationToken);