3 writes to ProjectRootElementCache
Microsoft.Build (3)
Definition\ProjectCollection.cs (3)
311
ProjectRootElementCache
= new SimpleProjectRootElementCache();
315
ProjectRootElementCache
= s_projectRootElementCache;
323
ProjectRootElementCache
= new ProjectRootElementCache(autoReloadFromDisk, loadProjectsReadOnly);
54 references to ProjectRootElementCache
Microsoft.Build (30)
BackEnd\BuildManager\BuildParameters.cs (1)
245
Initialize(new PropertyDictionary<ProjectPropertyInstance>(projectCollection.EnvironmentProperties), projectCollection.
ProjectRootElementCache
, new ToolsetProvider(projectCollection.Toolsets));
Construction\ProjectRootElement.cs (7)
739
return Create(projectCollection.
ProjectRootElementCache
);
749
return Create(projectCollection.
ProjectRootElementCache
, projectFileOptions);
789
projectCollection.
ProjectRootElementCache
,
825
return new ProjectRootElement(xmlReader, projectCollection.
ProjectRootElementCache
, true /*Explicitly loaded*/,
861
return Open(path, projectCollection.
ProjectRootElementCache
, true /*Is explicitly loaded*/, preserveFormatting);
918
ProjectRootElement projectRootElement = projectCollection.
ProjectRootElementCache
.TryGet(path, preserveFormatting);
1757
return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Definition\Project.cs (3)
1957
ProjectCollection.
ProjectRootElementCache
,
3728
ProjectCollection.
ProjectRootElementCache
,
4324
TaskRegistry = new TaskRegistry(Toolset, Project.ProjectCollection.
ProjectRootElementCache
);
Definition\ProjectCollection.cs (14)
326
s_projectRootElementCache =
ProjectRootElementCache
;
379
ProjectRootElementCache
.ProjectRootElementAddedHandler += ProjectRootElementCache_ProjectRootElementAddedHandler;
380
ProjectRootElementCache
.ProjectRootElementDirtied += ProjectRootElementCache_ProjectRootElementDirtiedHandler;
381
ProjectRootElementCache
.ProjectDirtied += ProjectRootElementCache_ProjectDirtiedHandler;
1197
ProjectRootElement xml = ProjectRootElement.OpenProjectOrSolution(fileName, globalProperties, toolsVersion,
ProjectRootElementCache
, true /*explicitlyloaded*/);
1365
ProjectRootElementCache
.DiscardStrongReferences();
1396
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1419
ProjectRootElementCache
.Clear();
1540
ProjectRootElementCache
.DiscardStrongReferences();
1545
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1637
if (
ProjectRootElementCache
!= null)
1639
ProjectRootElementCache
.ProjectRootElementAddedHandler -= ProjectRootElementCache_ProjectRootElementAddedHandler;
1640
ProjectRootElementCache
.ProjectRootElementDirtied -= ProjectRootElementCache_ProjectRootElementDirtiedHandler;
1641
ProjectRootElementCache
.ProjectDirtied -= ProjectRootElementCache_ProjectDirtiedHandler;
Instance\ProjectInstance.cs (5)
401
this.TaskRegistry = new TaskRegistry(Toolset, project.ProjectCollection.
ProjectRootElementCache
);
403
this.ProjectRootElementCache = project.ProjectCollection.
ProjectRootElementCache
;
477
TaskRegistry = new TaskRegistry(Toolset, linkedProject.ProjectCollection.
ProjectRootElementCache
);
479
ProjectRootElementCache = linkedProject.ProjectCollection.
ProjectRootElementCache
;
673
this.ProjectRootElementCache = data.Project.ProjectCollection.
ProjectRootElementCache
;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (3)
2049
_parameters.ProjectRootElementCache = _projectCollection.
ProjectRootElementCache
;
2105
_parameters.ProjectRootElementCache = projectCollection.
ProjectRootElementCache
;
2125
_parameters.ProjectRootElementCache = projectCollection.
ProjectRootElementCache
;
BackEnd\TaskRegistry_Tests.cs (2)
2183
? new TaskRegistry(toolset, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
)
2184
: new TaskRegistry(ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Definition\ToolsVersion_Tests.cs (10)
41
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
42
TaskRegistry taskoverrideRegistry = (TaskRegistry)t.GetOverrideTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
89
TaskRegistry taskoverrideRegistry = (TaskRegistry)t.GetOverrideTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
108
TaskRegistry taskoverrideRegistry = (TaskRegistry)t.GetOverrideTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
127
TaskRegistry taskoverrideRegistry = (TaskRegistry)t.GetOverrideTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
147
TaskRegistry taskoverrideRegistry = (TaskRegistry)t.GetOverrideTaskRegistry(loggingContext, e.
ProjectRootElementCache
);
170
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
200
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
223
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
938
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Evaluation\ProjectCollection_Tests.cs (2)
18
collectionWithDefaultCache.
ProjectRootElementCache
.ShouldBeOfType<ProjectRootElementCache>();
26
collectionWithSimpleCache.
ProjectRootElementCache
.ShouldBeOfType<SimpleProjectRootElementCache>();
Evaluation\ProjectRootElementCache_Tests.cs (6)
52
ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.Get("c:\\foo", (p, c) => null, true, false);
63
ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.Get("c:\\foo", (p, c) => ProjectRootElement.Create("c:\\bar"), true, false);
74
ProjectRootElement projectRootElement2 = ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.Get(rootedPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
91
projectRootElement = ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.Get(projectPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
95
ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.DiscardStrongReferences();
99
Assert.Null(ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
.TryGet(projectPath));
Microsoft.Build.UnitTests.Shared (1)
ProjectFromString.cs (1)
75
Project = new ProjectRootElement(_reader, projectCollection.
ProjectRootElementCache
, isExplicitlyLoaded, preserveFormatting);