1 write to Id
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
172Id = id;
42 references to Id
Microsoft.CodeAnalysis.Workspaces (42)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (7)
94var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 144var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 479_project.Id, _project._filePath, projectSystemFilePath, CancellationToken.None).WaitAndGetResult_CanCallOnBackground(CancellationToken.None); 528_project._projectSystemProjectFactory.ApplyChangeToWorkspace(_project.Id, solution => solution.WithProjectDocumentsOrder(_project.Id, documentIds.ToImmutable())); 549addDocumentChangeKind, removeDocuments, removeDocumentChangeKind, _project.Id, _documentsAddedInBatch.ToImmutableArray(), 618var documentId = DocumentId.CreateNewId(_project.Id, filePath);
Workspace\ProjectSystem\ProjectSystemProject.cs (35)
239solutionChanges.UpdateSolutionForProjectAction(Id, updateSolution(solutionChanges.Solution)); 285TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 333solutionChanges.UpdateSolutionForProjectAction(Id, withNewValue(solutionChanges.Solution)); 337projectUpdateState = RemoveProjectOutputPath_NoLock(solutionChanges, Id, oldValue, projectUpdateState, 343projectUpdateState = AddProjectOutputPath_NoLock(solutionChanges, Id, newValue, projectUpdateState, _projectSystemProjectFactory.SolutionServices); 353set => ChangeProjectProperty(ref _assemblyName, value, s => s.WithProjectAssemblyName(Id, value), logThrowAwayTelemetry: true); 362set => ChangeProjectProperty(ref _compilationOptions, value, s => s.WithProjectCompilationOptions(Id, value), logThrowAwayTelemetry: true); 371set => ChangeProjectProperty(ref _parseOptions, value, s => s.WithProjectParseOptions(Id, value), logThrowAwayTelemetry: true); 383s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithAssemblyPath(value))); 395s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithGeneratedFilesOutputDirectory(value))); 401set => ChangeProjectOutputPath(ref _outputFilePath, value, s => s.WithProjectOutputFilePath(Id, value)); 407set => ChangeProjectOutputPath(ref _outputRefFilePath, value, s => s.WithProjectOutputRefFilePath(Id, value)); 413set => ChangeProjectProperty(ref _filePath, value, s => s.WithProjectFilePath(Id, value)); 419set => ChangeProjectProperty(ref _displayName, value, s => s.WithProjectName(Id, value)); 425set => ChangeProjectProperty(ref _checksumAlgorithm, value, s => s.WithProjectChecksumAlgorithm(Id, value)); 433set => ChangeProjectProperty(ref _hasAllInformation, value, s => s.WithHasAllInformation(Id, value)); 460ChangeProjectProperty(ref _runAnalyzers, runAnalyzers, s => s.WithRunAnalyzers(Id, runAnalyzers)); 466set => ChangeProjectProperty(ref _hasSdkCodeStyleAnalyzers, value, s => s.WithHasSdkCodeStyleAnalyzers(Id, value)); 483set => ChangeProjectProperty(ref _defaultNamespace, value, s => s.WithProjectDefaultNamespace(Id, value)); 492set => _projectSystemProjectFactory.SetMaxLanguageVersion(Id, value); 497set => _projectSystemProjectFactory.SetDependencyNodeTargetIdentifier(Id, value); 500private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 580var projectBeforeMutations = solutionChanges.Solution.GetRequiredProject(Id); 613Id, solutionChanges, _projectReferencesRemovedInBatch, _projectReferencesAddedInBatch); 616Id, solutionChanges, projectUpdateState, _analyzersRemovedInBatch, _analyzersAddedInBatch); 922projectId: Id, projectFilePath: _filePath, filePath: dynamicFilePath, CancellationToken.None).WaitAndGetResult_CanCallOnBackground(CancellationToken.None); 999projectId: Id, projectFilePath: _filePath, filePath: dynamicFilePath, CancellationToken.None).Wait(CancellationToken.None); 1303return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1311var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1350if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1377var project = w.CurrentSolution.GetRequiredProject(Id); 1382_projectSystemProjectFactory.RemoveProjectFromTrackingMaps_NoLock(Id); 1391_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);