1 write to OldProject
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectChanges.cs (1)
15OldProject = oldProject;
45 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (4)
Preview\AbstractPreviewFactoryService.cs (4)
89var oldProject = projectChanges.OldProject; 216previewItems.Add(new SolutionPreviewItem(projectChanges.OldProject.Id, null, 217string.Format(EditorFeaturesResources.Changing_project_references_for_0, projectChanges.OldProject.Name))); 228var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
417await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 422await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 427var oldProject = projectChanges.OldProject;
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\Operations\ApplyChangesOperation.cs (1)
127var originalDocument = changedProject.OldProject.Solution.GetRequiredTextDocument(documentId);
Workspace\Solution\ProjectChanges.cs (18)
26var oldRefs = new HashSet<ProjectReference>(OldProject.ProjectReferences); 39foreach (var reference in OldProject.ProjectReferences) 50var oldMetadata = new HashSet<MetadataReference>(OldProject.MetadataReferences); 63foreach (var metadata in OldProject.MetadataReferences) 74var oldAnalyzerReferences = new HashSet<AnalyzerReference>(OldProject.AnalyzerReferences); 87foreach (var analyzerReference in OldProject.AnalyzerReferences) 100=> NewProject.State.DocumentStates.GetAddedStateIds(OldProject.State.DocumentStates); 106=> NewProject.State.AdditionalDocumentStates.GetAddedStateIds(OldProject.State.AdditionalDocumentStates); 112=> NewProject.State.AnalyzerConfigDocumentStates.GetAddedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 130=> NewProject.State.DocumentStates.GetChangedStateIds(OldProject.State.DocumentStates, onlyGetDocumentsWithTextChanges, ignoreUnchangeableDocuments); 137=> NewProject.State.AdditionalDocumentStates.GetChangedStateIds(OldProject.State.AdditionalDocumentStates); 144=> NewProject.State.AnalyzerConfigDocumentStates.GetChangedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 147/// Get <see cref="DocumentId"/>s of removed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 150=> NewProject.State.DocumentStates.GetRemovedStateIds(OldProject.State.DocumentStates); 153/// Get <see cref="DocumentId"/>s of removed additional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 156=> NewProject.State.AdditionalDocumentStates.GetRemovedStateIds(OldProject.State.AdditionalDocumentStates); 159/// Get <see cref="DocumentId"/>s of removed analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 162=> NewProject.State.AnalyzerConfigDocumentStates.GetRemovedStateIds(OldProject.State.AnalyzerConfigDocumentStates);
Workspace\Workspace.cs (14)
1659var oldDoc = projectChange.OldProject.GetRequiredDocument(docId); 1724projectChanges.OldProject.CompilationOptions != projectChanges.NewProject.CompilationOptions) 1730Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1739projectChanges.OldProject.CompilationOptions.SyntaxTreeOptionsProvider); 1741if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1747if (!CanApplyCompilationOptionChange(projectChanges.OldProject.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject)) 1755projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1756!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1772&& projectChanges.GetChangedDocuments().Any(id => projectChanges.NewProject.GetDocument(id)!.HasInfoChanged(projectChanges.OldProject.GetDocument(id)!))) 1787var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1900projectChanges.OldProject.CompilationOptions!.SyntaxTreeOptionsProvider); 1901if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1907if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 2023var oldDoc = projectChanges.OldProject.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
335var project = projectChanges.OldProject ?? projectChanges.NewProject;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
SolutionUtilities.cs (1)
36return solutionDifferences.GetProjectChanges().Select(n => n.NewProject.GetChanges(n.OldProject));
Workspaces\TestWorkspace`1.cs (1)
448if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath)
Microsoft.VisualStudio.LanguageServices (2)
Preview\ReferenceChange.cs (1)
31var oldSolution = projectChanges.OldProject.Solution;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
670var oldDocument = projectChanges.OldProject.GetRequiredDocument(changedDocumentId);