20 references to ProjectReferences
Microsoft.CodeAnalysis.Workspaces (20)
Workspace\Solution\Project.cs (2)
136public IEnumerable<ProjectReference> ProjectReferences => _projectState.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId)); 142public IReadOnlyList<ProjectReference> AllProjectReferences => _projectState.ProjectReferences;
Workspace\Solution\ProjectState.cs (3)
709/// Determines whether <see cref="ProjectReferences"/> contains a reference to a specified project. 715foreach (var projectReference in ProjectReferences) 726if (projectReferences == ProjectReferences)
Workspace\Solution\ProjectState_Checksum.cs (2)
63var projectReferenceChecksums = ChecksumCache.GetOrCreate<ChecksumCollection>(ProjectReferences, _ => new ChecksumCollection(ProjectReferences.SelectAsArray(r => serializer.CreateChecksum(r, cancellationToken))));
Workspace\Solution\Solution.cs (1)
1990var hasSubmissionReference = !ignoreExistingReferences && projectState.ProjectReferences.Any(p => _state.GetRequiredProjectState(p.ProjectId).IsSubmission);
Workspace\Solution\SolutionState.CompilationTracker.cs (4)
337foreach (var projectReference in this.ProjectState.ProjectReferences) 719foreach (var projectReference in this.ProjectState.ProjectReferences) 1153foreach (var dependentProjectReference in projectState.ProjectReferences) 1184foreach (var dependentProjectReference in projectState.ProjectReferences)
Workspace\Solution\SolutionState.cs (6)
447.WithAdditionalProjectReferences(projectId, projectState.ProjectReferences); 453foreach (var projectReference in newState.Value.ProjectReferences) 835var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 851var oldReferences = oldProject.ProjectReferences.ToImmutableArray(); 1545state.ProjectReferences.Where(pr => projectStates.ContainsKey(pr.ProjectId)).Select(pr => pr.ProjectId).ToImmutableHashSet())) 2050=> GetRequiredProjectState(projectId).ProjectReferences.Contains(projectReference);
Workspace\Solution\SolutionState_Checksum.cs (1)
90foreach (var refProject in projectState.ProjectReferences)
Workspace\Solution\StateChecksums.cs (1)
200ChecksumCollection.Find(state.ProjectReferences, ProjectReferences, searchingChecksumsLeft, result, cancellationToken);