7 writes to TaskRegistry
Microsoft.Build (7)
Instance\ProjectInstance.cs (7)
401
this.
TaskRegistry
= new TaskRegistry(Toolset, project.ProjectCollection.ProjectRootElementCache);
477
TaskRegistry
= new TaskRegistry(Toolset, linkedProject.ProjectCollection.ProjectRootElementCache);
551
this.
TaskRegistry
= projectToInheritFrom.TaskRegistry;
671
this.
TaskRegistry
= data.TaskRegistry;
751
this.
TaskRegistry
= that.TaskRegistry;
1291
TaskRegistry
= value;
3142
this.
TaskRegistry
= new TaskRegistry(this.Toolset, ProjectRootElementCache);
21 references to TaskRegistry
Microsoft.Build (11)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (5)
863
returnClass = _projectInstance.
TaskRegistry
.GetRegisteredTask(_taskName, null, taskIdentityParameters, true /* exact match */, _targetLoggingContext, _taskLocation);
866
returnClass = _projectInstance.
TaskRegistry
.GetRegisteredTask(_taskName, null, taskIdentityParameters, false /* fuzzy match */, _targetLoggingContext, _taskLocation);
870
returnClass = _projectInstance.
TaskRegistry
.GetRegisteredTask(_taskName, null, null, true /* exact match */, _targetLoggingContext, _taskLocation);
874
returnClass = _projectInstance.
TaskRegistry
.GetRegisteredTask(_taskName, null, null, false /* fuzzy match */, _targetLoggingContext, _taskLocation);
882
_projectInstance.
TaskRegistry
.Toolset.ToolsPath);
Instance\ProjectInstance.cs (6)
551
this.TaskRegistry = projectToInheritFrom.
TaskRegistry
;
751
this.TaskRegistry = that.
TaskRegistry
;
1286
return
TaskRegistry
;
2338
internal bool IsLoaded => ProjectRootElementCache != null &&
TaskRegistry
.IsLoaded;
2348
ErrorUtilities.VerifyThrow(
TaskRegistry
!= null, $"{nameof(
TaskRegistry
)} Cannot be null after {nameof(ProjectInstance)} object creation.");
Microsoft.Build.Engine.UnitTests (10)
Instance\ProjectInstance_Internal_Tests.cs (8)
73
project.
TaskRegistry
.TaskRegistrations.Count.ShouldBe(3);
74
project.
TaskRegistry
.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t0", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af0"));
75
project.
TaskRegistry
.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t1", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af1a"));
76
project.
TaskRegistry
.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t1", null)][1].TaskFactoryAssemblyLoadInfo.AssemblyName.ShouldBe("an1");
77
project.
TaskRegistry
.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("t2", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyName.ShouldBe("an2");
259
p.
TaskRegistry
.ShouldNotBeNull();
492
first.
TaskRegistry
.ShouldBeSameAs(second.
TaskRegistry
);
TestComparers\ProjectInstanceModelTestComparers.cs (2)
55
Assert.Equal(x.
TaskRegistry
, y.
TaskRegistry
, new TaskRegistryComparers.TaskRegistryComparer());