20 references to Id
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\Extensions.cs (1)
64return solution.AddProject(info).GetRequiredProject(id = info.Id);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
308var newProjectReference = CreateProjectReference(from: id, to: projectReferenceInfo.Id, aliases);
MSBuild\MSBuildWorkspace.cs (1)
261var projectResult = this.CurrentSolution.GetProject(projects[0].Id);
MSBuild\ProjectMap.cs (1)
113if (projectInfos.Contains(pi => pi.Id == projectInfo.Id))
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
30var project = ws.CurrentSolution.GetProject(info.Id); 58var project = ws.CurrentSolution.GetProject(info.Id);
SolutionTests\ProjectInfoTests.cs (1)
187SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithId(value), opt => opt.Id, ProjectId.CreateNewId(), defaultThrows: true);
WorkspaceTests\AdhocWorkspaceTests.cs (4)
39Assert.Equal(info.Id, project.Id); 101Assert.Equal(pinfo.Id, project.Id); 133Assert.Equal(info1.Id, project1.Id); 139Assert.Equal(info2.Id, project2.Id);
WorkspaceTests\WorkspaceReferenceTests.cs (3)
66projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)), 106projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)), 146projectReferences: ImmutableArray.Create<ProjectReference>(new ProjectReference(referenceInfo.Id)),
WorkspaceTests\WorkspaceTests.cs (1)
144return this.CurrentSolution.GetProject(projectInfo.Id);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
282_monikersToProjectIdAndContainer.Add(moniker, (projectInfo.Id, sourceTextContainer));
Microsoft.VisualStudio.LanguageServices.LiveShare (4)
Client\Razor\CSharpLspRazorProjectFactory.cs (2)
30_projects.Add(projectName, projectInfo.Id); 32return projectInfo.Id;
Client\RemoteLanguageServiceWorkspace.cs (1)
331project = CurrentSolution.GetRequiredProject(projectInfo.Id);
Client\RemoteLanguageServiceWorkspaceHost.cs (1)
122projectId = projectInfo.Id;