1 write to Projects
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionInfo.cs (1)
59Projects = projects;
12 references to Projects
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.cs (2)
275using var _ = ArrayBuilder<ProjectInfo>.GetInstance(solutionInfo.Projects.Count, out var projectInfos); 276projectInfos.AddRange(solutionInfo.Projects);
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
159projectInfos.AddRange(solutionInfo.Projects);
Workspace\Solution\SolutionInfo.cs (1)
112=> new(Attributes.With(telemetryId: telemetryId), Projects, AnalyzerReferences, FallbackAnalyzerOptions);
Workspace\Workspace.cs (2)
732newSolution = CheckAndAddProjects(newSolution, solutionInfo.Projects); 748newSolution = CheckAndAddProjects(newSolution, reloadedSolutionInfo.Projects);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
101var projectInfo = Assert.Single(solutionInfo.Projects);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionInfoTests.cs (4)
35Assert.Same(projectInfo, ((ImmutableArray<ProjectInfo>)info1.Projects).Single()); 38Assert.True(((ImmutableArray<ProjectInfo>)info2.Projects).IsEmpty); 41Assert.True(((ImmutableArray<ProjectInfo>)info3.Projects).IsEmpty); 44Assert.True(((ImmutableArray<ProjectInfo>)info4.Projects).IsEmpty);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
97Assert.Equal(sinfo.Projects.Count, solution.ProjectIds.Count);