3 writes to ProjectRootElementCache
Microsoft.Build (3)
Definition\ProjectCollection.cs (3)
338
ProjectRootElementCache
= new SimpleProjectRootElementCache();
342
ProjectRootElementCache
= s_projectRootElementCache;
350
ProjectRootElementCache
= new ProjectRootElementCache(autoReloadFromDisk, loadProjectsReadOnly);
31 references to ProjectRootElementCache
Microsoft.Build (31)
BackEnd\BuildManager\BuildParameters.cs (1)
261
Initialize(new PropertyDictionary<ProjectPropertyInstance>(projectCollection.EnvironmentProperties), projectCollection.
ProjectRootElementCache
, new ToolsetProvider(projectCollection.Toolsets));
Construction\ProjectRootElement.cs (7)
769
return Create(projectCollection.
ProjectRootElementCache
);
779
return Create(projectCollection.
ProjectRootElementCache
, projectFileOptions);
819
projectCollection.
ProjectRootElementCache
,
855
return new ProjectRootElement(xmlReader, projectCollection.
ProjectRootElementCache
, true /*Explicitly loaded*/,
891
return Open(path, projectCollection.
ProjectRootElementCache
, true /*Is explicitly loaded*/, preserveFormatting);
948
ProjectRootElement projectRootElement = projectCollection.
ProjectRootElementCache
.TryGet(path, preserveFormatting);
1787
return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Definition\Project.cs (3)
1963
ProjectCollection.
ProjectRootElementCache
,
3749
ProjectCollection.
ProjectRootElementCache
,
4349
TaskRegistry = new TaskRegistry(Toolset, Project.ProjectCollection.
ProjectRootElementCache
);
Definition\ProjectCollection.cs (14)
353
s_projectRootElementCache =
ProjectRootElementCache
;
407
ProjectRootElementCache
.ProjectRootElementAddedHandler += ProjectRootElementCache_ProjectRootElementAddedHandler;
408
ProjectRootElementCache
.ProjectRootElementDirtied += ProjectRootElementCache_ProjectRootElementDirtiedHandler;
409
ProjectRootElementCache
.ProjectDirtied += ProjectRootElementCache_ProjectDirtiedHandler;
1259
ProjectRootElement xml = ProjectRootElement.OpenProjectOrSolution(fileName, globalProperties, toolsVersion,
ProjectRootElementCache
, true /*explicitlyloaded*/);
1427
ProjectRootElementCache
.DiscardStrongReferences();
1458
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1481
ProjectRootElementCache
.Clear();
1602
ProjectRootElementCache
.DiscardStrongReferences();
1607
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1699
if (
ProjectRootElementCache
!= null)
1701
ProjectRootElementCache
.ProjectRootElementAddedHandler -= ProjectRootElementCache_ProjectRootElementAddedHandler;
1702
ProjectRootElementCache
.ProjectRootElementDirtied -= ProjectRootElementCache_ProjectRootElementDirtiedHandler;
1703
ProjectRootElementCache
.ProjectDirtied -= ProjectRootElementCache_ProjectDirtiedHandler;
Instance\ProjectInstance.cs (6)
408
this.TaskRegistry = new TaskRegistry(Toolset, project.ProjectCollection.
ProjectRootElementCache
);
410
this.ProjectRootElementCache = project.ProjectCollection.
ProjectRootElementCache
;
480
TaskRegistry = Toolset is null ? new TaskRegistry(linkedProject.ProjectCollection.
ProjectRootElementCache
) : new TaskRegistry(Toolset, linkedProject.ProjectCollection.
ProjectRootElementCache
);
482
ProjectRootElementCache = linkedProject.ProjectCollection.
ProjectRootElementCache
;
706
this.ProjectRootElementCache = data.Project.ProjectCollection.
ProjectRootElementCache
;