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