628 references to Id
AnalyzerRunner (3)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (30)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.EditorFeatures (12)
Preview\AbstractPreviewFactoryService.cs (11)
110previewItems.Add(new SolutionPreviewItem(oldProject.Id, documentId, async c =>
131previewItems.Add(new SolutionPreviewItem(oldProject.Id, documentId, async c =>
152previewItems.Add(new SolutionPreviewItem(oldProject.Id, documentId, async c =>
159previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
166previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
173previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
180previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
187previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
194previewItems.Add(new SolutionPreviewItem(oldProject.Id, null,
202previewItems.Add(new SolutionPreviewItem(project.Id, null,
209previewItems.Add(new SolutionPreviewItem(project.Id, null,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (20)
SymbolFinder\DependentTypeFinderTests.cs (12)
72", Net461.References.mscorlib, portableProject.Id);
113", Net461.References.mscorlib, portableProject.Id);
164", Net461.References.mscorlib, portableProject.Id);
205", SystemRuntimePP7Ref, portableProject.Id);
247", Net461.References.mscorlib, portableProject.Id);
289", Net40.References.mscorlib, portableProject.Id);
330", Net461.References.mscorlib, portableProject.Id);
371", Net461.References.mscorlib, portableProject.Id);
411", Net40.References.mscorlib, portableProject.Id);
695", Net40.References.mscorlib, normalProject1.Id);
697normalProject1 = solution.GetProject(normalProject1.Id);
751", Net40.References.mscorlib, portableProject1.Id);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Microsoft.CodeAnalysis.Features (79)
EditAndContinue\DebuggingSession.cs (5)
294if (!TryCreateInitialBaseline(baselineCompilation, outputs, baselineProject.Id, out errors, out var initialBaseline, out var debugInfoReaderProvider, out var metadataReaderProvider))
310var newBaseline = new ProjectBaseline(moduleId, baselineProject.Id, initialBaseline, generation: 0);
313_projectBaselines[baselineProject.Id] = baselines;
320=> _projectBaselines.TryGetValue(baselineProject.Id, out baselines) &&
797var oldProject = LastCommittedSolution.GetProject(newProject.Id);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
37(service, solutionChecksum, cancellationToken) => service.GetSourceLocationAsync(solutionChecksum, project.Id, query, cancellationToken),
60(service, solutionChecksum, cancellationToken) => service.GetSourceLocationsAsync(solutionChecksum, project.Id, query, cancellationToken),
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
211var self = project.Id;
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
Diagnostics\TestDiagnosticAnalyzerDriver.cs (2)
52project.Solution, project.Id, document.Id, diagnosticIds: null, shouldIncludeAnalyzer: null,
65project.Solution, project.Id, documentId: null, diagnosticIds: null, shouldIncludeAnalyzer: null,
Microsoft.CodeAnalysis.Features.UnitTests (20)
FindUsages\DefinitionItemFactoryTests.cs (13)
94expressionMap.Add(project.Id.Id.ToString(), $"project.{nameof(Project.Id)}.{nameof(Project.Id.Id)}.{nameof(Project.Id.Id.ToString)}()");
198("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
276("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
366("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
424("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
592("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
650("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
751("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString())
807("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString())
914("MetadataSymbolOriginatingProjectIdGuid", project.Id.Id.ToString()),
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (43)
Features\CodeFixes\CodeFixService.FixAllDiagnosticProvider.cs (2)
65var diagnostics = await _diagnosticService.GetDiagnosticsForIdsAsync(project.Solution, project.Id, documentId: null, _diagnosticIds, shouldIncludeAnalyzer: null, _includeSuppressedDiagnostics, includeLocalDocumentDiagnostics: true, includeNonLocalDocumentDiagnostics: false, cancellationToken).ConfigureAwait(false);
72var diagnostics = await _diagnosticService.GetProjectDiagnosticsForIdsAsync(project.Solution, project.Id, _diagnosticIds, shouldIncludeAnalyzer: null, _includeSuppressedDiagnostics, includeNonLocalDocumentDiagnostics: false, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.Remote.ServiceHub (11)
Host\RemoteWorkspace.SolutionCreator.cs (9)
352assetPath: project.Id, newProjectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false)));
359assetPath: project.Id, newProjectChecksums.ParseOptions, cancellationToken).ConfigureAwait(false));
366assetPath: project.Id, newProjectChecksums.ProjectReferences, cancellationToken).ConfigureAwait(false));
373assetPath: project.Id, newProjectChecksums.MetadataReferences, cancellationToken).ConfigureAwait(false));
382assetPath: project.Id, newProjectChecksums.AnalyzerReferences, cancellationToken).ConfigureAwait(false);
465assetPath: new(AssetPathKind.DocumentAttributes, project.Id), newChecksumsToSync, cancellationToken).ConfigureAwait(false);
471assetPath: new(AssetPathKind.DocumentText, project.Id), newChecksumsToSync, cancellationToken).ConfigureAwait(false);
501project = addDocuments(project.Solution, lazyDocumentsToAdd.ToImmutable()).GetProject(project.Id)!;
518project = removeDocuments(project.Solution, lazyDocumentsToRemove.ToImmutable()).GetProject(project.Id)!;
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (109)
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
86(service, solutionInfo, cancellationToken) => service.FindProjectSourceDeclarationsWithNormalQueryAsync(solutionInfo, project.Id, name, ignoreCase, criteria, cancellationToken),
152(service, solutionInfo, cancellationToken) => service.FindProjectSourceDeclarationsWithPatternAsync(solutionInfo, project.Id, pattern, criteria, cancellationToken),
Remote\RemoteServiceConnection.cs (4)
82=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
88=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
132=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
138=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
Workspace\Solution\Project.cs (60)
230=> Solution.GetDocumentId(syntaxTree, this.Id);
236=> Solution.GetDocument(syntaxTree, this.Id);
311if (this.Id != documentId.ProjectId)
346if (this.Id != documentId.ProjectId)
483=> Solution.CompilationState.TryGetCompilation(this.Id, out compilation);
531=> Solution.CompilationState.GetDependentVersionAsync(this.Id, cancellationToken);
538=> Solution.CompilationState.GetDependentSemanticVersionAsync(this.Id, cancellationToken);
573=> Solution.CompilationState.GetDependentChecksumAsync(this.Id, cancellationToken);
579=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
585=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id);
588=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id);
591=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id);
594=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id);
600=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id);
606=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id);
613=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id);
620=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
626=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id);
633=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
640=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
647=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
653=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
660=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
667=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
674=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id);
680=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
687=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id);
694=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id);
701var id = DocumentId.CreateNewId(this.Id);
713var id = DocumentId.CreateNewId(this.Id);
722var id = DocumentId.CreateNewId(this.Id, debugName: name);
731var id = DocumentId.CreateNewId(this.Id);
740var id = DocumentId.CreateNewId(this.Id);
749var id = DocumentId.CreateNewId(this.Id);
760return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id);
770return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
779=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id);
788return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id);
797=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id);
806return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
814if (documentId?.ProjectId != this.Id)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (14)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (123)
SolutionTests\ProjectDependencyGraphTests.cs (32)
216solution = solution.WithProjectReferences(solution.GetProjectsByName("C").Single().Id, []);
226var projectAId = solution.GetProjectsByName("A").Single().Id;
227var projectBId = solution.GetProjectsByName("B").Single().Id;
280var projectId = solution.GetProjectsByName(project).Single().Id;
297var projectId = solution.GetProjectsByName(project).Single().Id;
315solution = solution.WithProjectReferences(solution.GetProjectsByName("A").Single().Id,
395solution = solution.WithProjectReferences(solution.GetProjectsByName("C").Single().Id, []);
415solution = solution.RemoveProject(solution.GetProjectsByName("B").Single().Id);
437solution = solution.RemoveProject(solution.GetProjectsByName("B").Single().Id);
459solution = solution.RemoveProject(solution.GetProjectsByName("B").Single().Id);
481solution = solution.RemoveProject(solution.GetProjectsByName("B").Single().Id);
506var expected = solution.SolutionState.GetProjectDependencyGraph().GetProjectsThatTransitivelyDependOnThisProject(d.Id);
508var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id);
509solution = solution.RemoveProjectReference(a.Id, aToB);
514Assert.Same(expected, solution.SolutionState.GetProjectDependencyGraph().GetTestAccessor().TryGetProjectsThatTransitivelyDependOnThisProject(d.Id));
534var expected = solution.SolutionState.GetProjectDependencyGraph().GetProjectsThatTransitivelyDependOnThisProject(e.Id);
536var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id);
537solution = solution.RemoveProjectReference(a.Id, aToB);
542Assert.Same(expected, solution.SolutionState.GetProjectDependencyGraph().GetTestAccessor().TryGetProjectsThatTransitivelyDependOnThisProject(e.Id));
563var notExpected = solution.SolutionState.GetProjectDependencyGraph().GetProjectsThatTransitivelyDependOnThisProject(c.Id);
566var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id);
567solution = solution.RemoveProjectReference(a.Id, aToB);
571Assert.Null(solution.SolutionState.GetProjectDependencyGraph().GetTestAccessor().TryGetProjectsThatTransitivelyDependOnThisProject(c.Id));
615var firstBToC = b.ProjectReferences.First(reference => reference.ProjectId == c.Id);
616solution = solution.RemoveProjectReference(b.Id, firstBToC);
620var remainingBToC = b.ProjectReferences.Single(reference => reference.ProjectId == c.Id);
621solution = solution.RemoveProjectReference(b.Id, remainingBToC);
648var projectId = solution.GetProjectsByName(project).Single().Id;
660var projectId = solution.GetProjectsByName(project).Single().Id;
724references.Add(new ProjectReference(solution.GetProjectsByName(targetProject).Single().Id));
728references.Add(new ProjectReference(solution.GetProjectsByName(targetProject).Single().Id, [$"alias{references.Count}"]));
733solution.GetProjectsByName(projectName).Single().Id,
SolutionTests\SolutionTests.cs (54)
1914var projectId = solution.Projects.Single().Id;
1947var projectId = solution.Projects.Single().Id;
1963var projectId = solution.Projects.Single().Id;
2005var projectId = solution.Projects.Single().Id;
2076var projectId = solution.Projects.Single().Id;
2094var projectId = solution.Projects.Single().Id;
2119var projectId = solution.Projects.Single().Id;
2146var projectId = solution.Projects.Single().Id;
2164var projectId = solution.Projects.Single().Id;
2192var projectId = solution.Projects.Single().Id;
2310var editorConfigId = DocumentId.CreateNewId(solution3.Projects.Single().Id);
2590var pid2 = solution.Projects.Single().Id;
2838Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id);
2839Assert.Equal(project, solution.GetProject(project.Id));
2862referenced, solution.GetProjectState(project.Id), includeCrossLanguage: true, CancellationToken.None);
3975Assert.Equal(pid2, projectForBaseType.Id);
3983Assert.Equal(pid1, projectForBaseType.Id);
3991var doc = ws.AddDocument(proj.Id, "a.cs", SourceText.From("public class c { }", Encoding.UTF32));
4032projectReferences: [new ProjectReference(project1.Id)]));
4052workspace.AddDocument(project1.Id, "Broken.cs", SourceText.From("class "));
4062projectReferences: [new ProjectReference(project1.Id)]));
4234projectReferences: [new ProjectReference(project1.Id)]));
4236var document = workspace.AddDocument(project2.Id, "Test.cs", SourceText.From(""));
4241Assert.True(await frozenSolution.GetProject(project1.Id).HasSuccessfullyLoadedAsync(CancellationToken.None));
4242Assert.True(await frozenSolution.GetProject(project2.Id).HasSuccessfullyLoadedAsync(CancellationToken.None));
4417currentSolution = currentSolution.WithProjectParseOptions(document1.Project.Id, options.WithPreprocessorSymbols("X"));
5302solution = solution.RemoveProject(solution.Projects.Single(p => p.Name == "CS2").Id);
5308solution = solution.RemoveProject(solution.Projects.Single(p => p.Name == "NC1").Id);
5348projectReferences: [new ProjectReference(csBrokenProject.Id), new ProjectReference(vbNormalProject.Id)]));
5358projectReferences: [new ProjectReference(vbNormalProject.Id)]));
5368projectReferences: [new ProjectReference(dependsOnBrokenProject.Id)]));
5378projectReferences: [new ProjectReference(dependsOnVbNormalProject.Id)]));
5404var s4 = s2.RemoveProject(s2.Projects.Single(p => p.Name == "P1").Id);
5616project1 = project2.Solution.GetProject(project1.Id).AddDocument("Doc1", SourceText.From("class Doc1 { }")).Project;
5617project2 = project1.Solution.GetProject(project2.Id).AddDocument("Doc2", SourceText.From("class Doc2 { }")).Project;
5618project1 = project2.Solution.GetProject(project1.Id);
5624var frozenProject1 = frozenSolution.GetProject(project1.Id);
5627var frozenProject2 = frozenSolution.GetProject(project2.Id);
5644project1 = project2.Solution.GetProject(project1.Id).AddDocument("Doc1", SourceText.From("class Doc1 { }")).Project;
5645project2 = project1.Solution.GetProject(project2.Id).AddDocument("Doc2", SourceText.From("class Doc2 { }")).Project;
5647project2 = project2.AddProjectReference(new(project1.Id));
5648project1 = project2.Solution.GetProject(project1.Id);
5654var frozenProject1 = frozenSolution.GetProject(project1.Id);
5661var frozenProject2 = frozenSolution.GetProject(project2.Id);
5674project1 = project2.Solution.GetProject(project1.Id).AddDocument("Doc1", SourceText.From("class Doc1 { }")).Project;
5675project2 = project1.Solution.GetProject(project2.Id).AddDocument("Doc2", SourceText.From("class Doc2 { }")).Project;
5677project2 = project2.AddProjectReference(new(project1.Id));
5678project1 = project2.Solution.GetProject(project1.Id);
5684var frozenProject1 = frozenSolution.GetProject(project1.Id);
5691var frozenProject2 = frozenSolution.GetProject(project2.Id);
5715var forkedProject1 = frozenSolution.WithDocumentText(project1.Documents.Single().Id, SourceText.From("class Doc2 { }")).GetProject(project1.Id);
5754var forkedProject1 = frozenSolution.WithDocumentText(project1.Documents.Single().Id, SourceText.From("class Doc2 { }")).GetProject(project1.Id);
WorkspaceTests\AdhocWorkspaceTests.cs (12)
39Assert.Equal(info.Id, project.Id);
59var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs");
73var doc = ws.AddDocument(project.Id, name, SourceText.From(source));
101Assert.Equal(pinfo.Id, project.Id);
133Assert.Equal(info1.Id, project1.Id);
139Assert.Equal(info2.Id, project2.Id);
377var projid = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
414var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
445var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
480var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
512var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
543var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.ML.CodeAnalyzer.Tests (1)
Microsoft.VisualStudio.LanguageServices (48)
CallHierarchy\CallHierarchyProvider.cs (7)
111new MethodCallFinder(symbol, project.Id, AsyncListener, this)
116finders.Add(new OverridingMemberFinder(symbol, project.Id, AsyncListener, this));
122finders.Add(new CallToOverrideFinder(symbol, project.Id, AsyncListener, this));
127finders.Add(new BaseMemberFinder(symbol.GetOverriddenMember(), project.Id, AsyncListener, this));
133finders.Add(new InterfaceImplementationCallFinder(implementedInterfaceMember, project.Id, AsyncListener, this));
138finders.Add(new ImplementerFinder(symbol, project.Id, AsyncListener, this));
146return [new FieldReferenceFinder(symbol, project.Id, AsyncListener, this)];
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Roslyn.VisualStudio.Next.UnitTests (69)
Services\SolutionServiceTests.cs (63)
569var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
570await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
575var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
576await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
601await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
602var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
608await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
609var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
636solution = project3.Solution.AddProjectReference(project3.Id, new(project3.Solution.Projects.Single(p => p.Name == "P2").Id));
642await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
643var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
649await solution.AppendAssetMapAsync(map, project3.Id, CancellationToken.None);
650var project3Checksum = await solution.CompilationState.GetChecksumAsync(project3.Id, CancellationToken.None);
669solution = project3.Solution.AddProjectReference(project3.Id, new(project3.Solution.Projects.Single(p => p.Name == "P2").Id));
676await solution.AppendAssetMapAsync(map, project3.Id, CancellationToken.None);
677var project3Checksum = await solution.CompilationState.GetChecksumAsync(project3.Id, CancellationToken.None);
682await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
683var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
689await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
690var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
710solution = project3.Solution.AddProjectReference(project3.Id, new(project2.Id))
711.AddProjectReference(project2.Id, new(project1.Id));
718await solution.AppendAssetMapAsync(map, project3.Id, CancellationToken.None);
719var project3Checksum = await solution.CompilationState.GetChecksumAsync(project3.Id, CancellationToken.None);
724await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
725var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
730await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
731var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
750solution = project3.Solution.AddProjectReference(project3.Id, new(project2.Id))
751.AddProjectReference(project3.Id, new(project1.Id));
758await solution.AppendAssetMapAsync(map, project3.Id, CancellationToken.None);
759var project3Checksum = await solution.CompilationState.GetChecksumAsync(project3.Id, CancellationToken.None);
764await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
765var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
770await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
771var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
796await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
797var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
803await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
804var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
835solution = solution.GetProject(project1.Id).AddDocument("X.cs", SourceText.From("// X")).Project.Solution;
836solution = solution.GetProject(project2.Id).AddDocument("Y.vb", SourceText.From("' Y")).Project.Solution;
841await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
842var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
853await solution.AppendAssetMapAsync(map, project2.Id, CancellationToken.None);
854var project2Checksum = await solution.CompilationState.GetChecksumAsync(project2.Id, CancellationToken.None);
890solution = solution.GetProject(project1.Id).AddDocument("X.cs", SourceText.From("// X")).Project.Solution;
891solution = solution.GetProject(project2.Id).AddDocument("Y.cs", SourceText.From("// Y")).Project.Solution;
892solution = solution.GetProject(project1.Id).AddProjectReference(new ProjectReference(project2.Id)).Solution;
897await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
898var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
901var project1Synced = project1SyncedSolution.GetRequiredProject(project1.Id);
902var project2Synced = project1SyncedSolution.GetRequiredProject(project2.Id);
930var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);
966await solution.AppendAssetMapAsync(map, project1.Id, CancellationToken.None);
967var project1Checksum = await solution.CompilationState.GetChecksumAsync(project1.Id, CancellationToken.None);