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