32 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (4)
Preview\AbstractPreviewFactoryService.cs (4)
90var oldProject = projectChanges.OldProject; 217previewItems.Add(new SolutionPreviewItem(projectChanges.OldProject.Id, null, 218string.Format(EditorFeaturesResources.Changing_project_references_for_0, projectChanges.OldProject.Name))); 229var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\TestWorkspace.cs (1)
400if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath)
Microsoft.CodeAnalysis.Features (6)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
550await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 555await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 560var oldProject = projectChanges.OldProject;
SolutionCrawler\WorkCoordinator.cs (3)
489await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 494await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, InvocationReasons.DocumentRemoved).ConfigureAwait(false); 499var oldProject = projectChanges.OldProject;
Microsoft.CodeAnalysis.Workspaces (17)
CodeActions\Operations\ApplyChangesOperation.cs (1)
133var originalDocument = changedProject.OldProject.Solution.GetRequiredTextDocument(documentId);
Workspace\Solution\ProjectChanges.cs (3)
150/// Get <see cref="DocumentId"/>s of removed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 156/// Get <see cref="DocumentId"/>s of removed additional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 162/// Get <see cref="DocumentId"/>s of removed analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>.
Workspace\Workspace.cs (13)
1404projectChanges.OldProject.CompilationOptions != projectChanges.NewProject.CompilationOptions) 1410Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1419projectChanges.OldProject.CompilationOptions.SyntaxTreeOptionsProvider); 1421if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1427if (!CanApplyCompilationOptionChange(projectChanges.OldProject.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject)) 1435projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1436!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1452&& projectChanges.GetChangedDocuments().Any(id => projectChanges.NewProject.GetDocument(id)!.HasInfoChanged(projectChanges.OldProject.GetDocument(id)!))) 1467var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1580projectChanges.OldProject.CompilationOptions!.SyntaxTreeOptionsProvider); 1581if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1587if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 1703var oldDoc = projectChanges.OldProject.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
315var project = projectChanges.OldProject ?? projectChanges.NewProject;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
SolutionUtilities.cs (1)
36return solutionDifferences.GetProjectChanges().Select(n => n.NewProject.GetChanges(n.OldProject));
Microsoft.VisualStudio.LanguageServices (2)
Preview\ReferenceChange.cs (1)
36var oldSolution = projectChanges.OldProject.Solution;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
670var oldDocument = projectChanges.OldProject.GetRequiredDocument(changedDocumentId);