1 write to Id
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
160
Id
= id;
69 references to Id
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LoadedProject.cs (1)
145
_targetFrameworkManager.UpdateIdentifierForProject(_projectSystemProject.
Id
, newProjectInfo.TargetFrameworkIdentifier);
HostWorkspace\WorkspaceProject.cs (1)
172
case "TargetFrameworkIdentifier": _targetFrameworkManager.UpdateIdentifierForProject(_project.
Id
, valueOrNull); break;
Microsoft.CodeAnalysis.Workspaces (42)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (7)
106
var documentId = DocumentId.CreateNewId(_project.
Id
, fullPath);
156
var documentId = DocumentId.CreateNewId(_project.
Id
, fullPath);
494
_project.
Id
, _project._filePath, projectSystemPath, CancellationToken.None).ConfigureAwait(false);
552
_project._projectSystemProjectFactory.ApplyChangeToWorkspace(_project.
Id
, solution => solution.WithProjectDocumentsOrder(_project.
Id
, documentIds.ToImmutable()));
573
addDocumentChangeKind, removeDocuments, removeDocumentChangeKind, _project.
Id
, _documentsAddedInBatch.ToImmutableArray(),
642
var documentId = DocumentId.CreateNewId(_project.
Id
, filePath);
Workspace\ProjectSystem\ProjectSystemProject.cs (35)
227
solutionChanges.UpdateSolutionForProjectAction(
Id
, updateSolution(solutionChanges.Solution));
277
TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution,
Id
);
340
solutionChanges.UpdateSolutionForProjectAction(
Id
, withNewValue(solutionChanges.Solution));
344
projectUpdateState = RemoveProjectOutputPath_NoLock(solutionChanges,
Id
, oldValue, projectUpdateState,
350
projectUpdateState = AddProjectOutputPath_NoLock(solutionChanges,
Id
, newValue, projectUpdateState, _projectSystemProjectFactory.SolutionServices);
360
set => ChangeProjectProperty(ref _assemblyName, value, s => s.WithProjectAssemblyName(
Id
, value), logThrowAwayTelemetry: true);
369
set => ChangeProjectProperty(ref _compilationOptions, value, s => s.WithProjectCompilationOptions(
Id
, value));
378
set => ChangeProjectProperty(ref _parseOptions, value, s => s.WithProjectParseOptions(
Id
, value), logThrowAwayTelemetry: true);
390
s => s.WithProjectCompilationOutputInfo(
Id
, s.GetRequiredProject(
Id
).CompilationOutputInfo.WithAssemblyPath(value)));
402
s => s.WithProjectCompilationOutputInfo(
Id
, s.GetRequiredProject(
Id
).CompilationOutputInfo.WithGeneratedFilesOutputDirectory(value)));
408
set => ChangeProjectOutputPath(ref field, value, s => s.WithProjectOutputFilePath(
Id
, value));
414
set => ChangeProjectOutputPath(ref field, value, s => s.WithProjectOutputRefFilePath(
Id
, value));
420
set => ChangeProjectProperty(ref _filePath, value, s => s.WithProjectFilePath(
Id
, value));
426
set => ChangeProjectProperty(ref _displayName, value, s => s.WithProjectName(
Id
, value));
432
set => ChangeProjectProperty(ref field, value, s => s.WithProjectChecksumAlgorithm(
Id
, value));
440
set => ChangeProjectProperty(ref field, value, s => s.WithHasAllInformation(
Id
, value));
470
ChangeProjectProperty(ref _runAnalyzers, runAnalyzers, s => s.WithRunAnalyzers(
Id
, runAnalyzers));
476
set => ChangeProjectProperty(ref field, value, s => s.WithHasSdkCodeStyleAnalyzers(
Id
, value));
493
set => ChangeProjectProperty(ref field, value, s => s.WithProjectDefaultNamespace(
Id
, value));
502
set => _projectSystemProjectFactory.SetMaxLanguageVersion(
Id
, value);
507
set => _projectSystemProjectFactory.SetDependencyNodeTargetIdentifier(
Id
, value);
510
private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(
Id
);
590
var projectBeforeMutations = solutionChanges.Solution.GetRequiredProject(
Id
);
623
Id
, solutionChanges, _projectReferencesRemovedInBatch, _projectReferencesAddedInBatch);
626
Id
, solutionChanges, projectUpdateState, _analyzersRemovedInBatch, _analyzersAddedInBatch);
940
projectId:
Id
, projectFilePath: _filePath, filePath: dynamicFilePath, CancellationToken.None).WaitAndGetResult_CanCallOnBackground(CancellationToken.None);
1017
projectId:
Id
, projectFilePath: _filePath, filePath: dynamicFilePath, CancellationToken.None).Wait(CancellationToken.None);
1321
return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(
Id
).AllProjectReferences.Contains(projectReference);
1329
var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(
Id
).AllProjectReferences;
1368
if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(
Id
))
1395
var project = w.CurrentSolution.GetRequiredProject(
Id
);
1400
_projectSystemProjectFactory.RemoveProjectFromTrackingMaps_NoLock(
Id
);
1409
_projectSystemProjectFactory.Workspace.OnProjectRemoved(
Id
);
Microsoft.VisualStudio.LanguageServices (14)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
77
projectId = _workspace.GetProjectWithHierarchyAndName(hierarchy, contextProjectName)?.
Id
;
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
50
project.Project.
Id
,
ExternalAccess\VSTypeScript\Api\VSTypeScriptVisualStudioProjectWrapper.cs (1)
16
public ProjectId Id => Project.
Id
;
LanguageService\AbstractLanguageService`2.cs (1)
239
project.
Id
,
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
155
_externalErrorReporter = new ProjectExternalErrorReporter(ProjectSystemProject.
Id
, projectHierarchyGuid, externalErrorReportingPrefix, language, workspaceImpl);
ProjectSystem\VisualStudioWorkspaceImpl.cs (4)
225
_projectToHierarchyMap = _projectToHierarchyMap.Add(project.
Id
, hierarchy);
226
_projectToGuidMap = _projectToGuidMap.Add(project.
Id
, guid);
233
Contract.ThrowIfFalse(ImmutableInterlocked.TryAdd(ref _projectToRuleSetFilePath, project.
Id
, ruleSetFilePathFunc));
250
if (_projectToHierarchyMap.TryGetValue(project.
Id
, out var projectHierarchy))
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (2)
236
if (project != null && projectIds.Contains(project.
Id
))
238
return project.
Id
;
Venus\ContainedDocument.cs (3)
175
var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.
Id
);
184
foreach (var document in _workspace.CurrentSolution.GetProject(_project.
Id
).Documents)
198
var hierarchy = ((VisualStudioWorkspace)_workspace).GetHierarchy(_project.
Id
);
Microsoft.VisualStudio.LanguageServices.CSharp (6)
ProjectSystemShim\CSharpProjectShim.cs (1)
68
this.ProjectCodeModel = componentModel.GetService<IProjectCodeModelFactory>().CreateProjectCodeModel(ProjectSystemProject.
Id
, this);
ProjectSystemShim\CSharpProjectShim.ICSharpProjectSite.cs (1)
132
var project = Workspace.CurrentSolution.GetRequiredProject(ProjectSystemProject.
Id
);
ProjectSystemShim\CSharpProjectShim.ICSharpVenusProjectSite.cs (4)
24
var projectReferencesToRemove = ProjectSystemProject.GetProjectReferences().Where(p => p.ProjectId == projectSite.ProjectSystemProject.
Id
).ToList();
33
ProjectSystemProject.RemoveProjectReference(new ProjectReference(projectSite.ProjectSystemProject.
Id
));
46
var existingProjectReference = ProjectSystemProject.GetProjectReferences().Single(p => p.ProjectId == projectSite.ProjectSystemProject.
Id
);
57
ProjectSystemProject.AddProjectReference(new ProjectReference(projectSite.ProjectSystemProject.
Id
, embedInteropTypes: optionID == CompilerOptions.OPTID_IMPORTSUSINGNOPIA));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (2)
113
=> environment.Workspace.CurrentSolution.GetRequiredProject(project.Test_ProjectSystemProject.
Id
).CompilationOutputInfo.AssemblyPath;
146
=> environment.Workspace.CurrentSolution.GetRequiredProject(project.Test_ProjectSystemProject.
Id
).CompilationOutputInfo.AssemblyPath;
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\XamlProjectService.cs (3)
170
var documentId = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(filePath).Single(d => d.ProjectId == project.
Id
);
207
var project = _xamlProjects.Values.SingleOrDefault(p => p.
Id
== document.Project.Id);
258
var documentId = _workspace.CurrentSolution.GetDocumentIdsWithFilePath(newMoniker).Single(d => d.ProjectId == project.
Id
);