3 writes to ProjectRootElementCache
Microsoft.Build (3)
Definition\ProjectCollection.cs (3)
386
ProjectRootElementCache
= new SimpleProjectRootElementCache();
390
ProjectRootElementCache
= s_projectRootElementCache;
398
ProjectRootElementCache
= new ProjectRootElementCache(autoReloadFromDisk, loadProjectsReadOnly);
34 references to ProjectRootElementCache
Microsoft.Build (34)
BackEnd\BuildManager\BuildParameters.cs (1)
261
Initialize(new PropertyDictionary<ProjectPropertyInstance>(projectCollection.EnvironmentProperties), projectCollection.
ProjectRootElementCache
, new ToolsetProvider(projectCollection.Toolsets));
Construction\ProjectRootElement.cs (7)
765
return Create(projectCollection.
ProjectRootElementCache
);
775
return Create(projectCollection.
ProjectRootElementCache
, projectFileOptions);
815
projectCollection.
ProjectRootElementCache
,
851
return new ProjectRootElement(xmlReader, projectCollection.
ProjectRootElementCache
, true /*Explicitly loaded*/,
887
return Open(path, projectCollection.
ProjectRootElementCache
, true /*Is explicitly loaded*/, preserveFormatting);
944
ProjectRootElement projectRootElement = projectCollection.
ProjectRootElementCache
.TryGet(path, preserveFormatting);
1783
return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Definition\Project.cs (3)
1980
ProjectCollection.
ProjectRootElementCache
,
3610
ProjectCollection.
ProjectRootElementCache
,
4210
TaskRegistry = new TaskRegistry(Toolset, Project.ProjectCollection.
ProjectRootElementCache
);
Definition\ProjectCollection.cs (17)
402
s_projectRootElementCache =
ProjectRootElementCache
;
421
ProjectRootElementCache
.SetParserIgnoreConfiguration(config);
473
ProjectRootElementCache
.ProjectRootElementAddedHandler += ProjectRootElementCache_ProjectRootElementAddedHandler;
474
ProjectRootElementCache
.ProjectRootElementDirtied += ProjectRootElementCache_ProjectRootElementDirtiedHandler;
475
ProjectRootElementCache
.ProjectDirtied += ProjectRootElementCache_ProjectDirtiedHandler;
606
get =>
ProjectRootElementCache
.ParserIgnoreConfiguration;
607
set =>
ProjectRootElementCache
.SetParserIgnoreConfiguration(value);
1356
ProjectRootElement xml = ProjectRootElement.OpenProjectOrSolution(fileName, globalProperties, toolsVersion,
ProjectRootElementCache
, isExplicitlyLoaded: true);
1521
ProjectRootElementCache
.DiscardStrongReferences();
1552
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1575
ProjectRootElementCache
.Clear();
1696
ProjectRootElementCache
.DiscardStrongReferences();
1701
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1793
if (
ProjectRootElementCache
!= null)
1795
ProjectRootElementCache
.ProjectRootElementAddedHandler -= ProjectRootElementCache_ProjectRootElementAddedHandler;
1796
ProjectRootElementCache
.ProjectRootElementDirtied -= ProjectRootElementCache_ProjectRootElementDirtiedHandler;
1797
ProjectRootElementCache
.ProjectDirtied -= ProjectRootElementCache_ProjectDirtiedHandler;
Instance\ProjectInstance.cs (6)
417
this.TaskRegistry = new TaskRegistry(Toolset, project.ProjectCollection.
ProjectRootElementCache
);
419
this.ProjectRootElementCache = project.ProjectCollection.
ProjectRootElementCache
;
489
TaskRegistry = Toolset is null ? new TaskRegistry(linkedProject.ProjectCollection.
ProjectRootElementCache
) : new TaskRegistry(Toolset, linkedProject.ProjectCollection.
ProjectRootElementCache
);
491
ProjectRootElementCache = linkedProject.ProjectCollection.
ProjectRootElementCache
;
717
this.ProjectRootElementCache = data.Project.ProjectCollection.
ProjectRootElementCache
;