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);
55 references to ProjectRootElementCache
Microsoft.Build (30)
BackEnd\BuildManager\BuildParameters.cs (1)
252
Initialize(new PropertyDictionary<ProjectPropertyInstance>(projectCollection.EnvironmentProperties), projectCollection.
ProjectRootElementCache
, new ToolsetProvider(projectCollection.Toolsets));
Construction\ProjectRootElement.cs (7)
761
return Create(projectCollection.
ProjectRootElementCache
);
771
return Create(projectCollection.
ProjectRootElementCache
, projectFileOptions);
811
projectCollection.
ProjectRootElementCache
,
847
return new ProjectRootElement(xmlReader, projectCollection.
ProjectRootElementCache
, true /*Explicitly loaded*/,
883
return Open(path, projectCollection.
ProjectRootElementCache
, true /*Is explicitly loaded*/, preserveFormatting);
940
ProjectRootElement projectRootElement = projectCollection.
ProjectRootElementCache
.TryGet(path, preserveFormatting);
1779
return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.
ProjectRootElementCache
);
Definition\Project.cs (3)
1957
ProjectCollection.
ProjectRootElementCache
,
3729
ProjectCollection.
ProjectRootElementCache
,
4325
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;
1202
ProjectRootElement xml = ProjectRootElement.OpenProjectOrSolution(fileName, globalProperties, toolsVersion,
ProjectRootElementCache
, true /*explicitlyloaded*/);
1370
ProjectRootElementCache
.DiscardStrongReferences();
1401
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1424
ProjectRootElementCache
.Clear();
1545
ProjectRootElementCache
.DiscardStrongReferences();
1550
ProjectRootElementCache
.DiscardAnyWeakReference(projectRootElement);
1642
if (
ProjectRootElementCache
!= null)
1644
ProjectRootElementCache
.ProjectRootElementAddedHandler -= ProjectRootElementCache_ProjectRootElementAddedHandler;
1645
ProjectRootElementCache
.ProjectRootElementDirtied -= ProjectRootElementCache_ProjectRootElementDirtiedHandler;
1646
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 (24)
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
);
Construction\ProjectRootElement_Tests.cs (1)
124
var projectRootElement = ProjectRootElement.CreateEphemeral(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);