6 instantiations of TypeLoader
Microsoft.Build (4)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
33
private readonly TypeLoader _typeLoader = new
TypeLoader
(TaskLoader.IsTaskClass);
Instance\TaskRegistry.cs (1)
1414
s_taskFactoryTypeLoader = new
TypeLoader
(s_taskFactoryTypeFilter);
Logging\LoggerDescription.cs (2)
202
LoadedType loggerClass = (new
TypeLoader
(s_forwardingLoggerClassFilter)).Load(_loggerClassName, _loggerAssembly);
213
LoadedType loggerClass = (new
TypeLoader
(s_loggerClassFilter)).Load(_loggerClassName, _loggerAssembly);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskExecutionHost_Tests.cs (1)
1242
TypeLoader typeLoader = new
TypeLoader
(IsTaskFactoryClass);
TypeLoader_Tests.cs (1)
111
TypeLoader typeLoader =
new
(TaskLoader.IsTaskClass);
21 references to TypeLoader
Microsoft.Build (7)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
33
private readonly
TypeLoader
_typeLoader = new TypeLoader(TaskLoader.IsTaskClass);
Instance\TaskRegistry.cs (4)
890
if (
TypeLoader
.IsPartialTypeNameMatch(x.Name, y.Name))
1116
private static
TypeLoader
s_taskFactoryTypeLoader;
1388
!
TypeLoader
.IsPartialTypeNameMatch(RegisteredName, "MSBuild") &&
1389
!
TypeLoader
.IsPartialTypeNameMatch(RegisteredName, "CallTarget"));
TypeLoader.cs (2)
368
if (typeName.Length == 0 ||
TypeLoader
.IsPartialTypeNameMatch(desiredTypeInAssembly.Key, typeName))
390
if (_isDesiredType(publicType, null) && (typeName.Length == 0 ||
TypeLoader
.IsPartialTypeNameMatch(publicType.FullName, typeName)))
Microsoft.Build.Engine.UnitTests (14)
BackEnd\TaskExecutionHost_Tests.cs (1)
1242
TypeLoader
typeLoader = new TypeLoader(IsTaskFactoryClass);
TypeLoader_Tests.cs (13)
37
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("Csc", "csc")); // ==> exact match
38
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("Microsoft.Build.Tasks.Csc", "Microsoft.Build.Tasks.Csc")); // ==> exact match
39
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("Microsoft.Build.Tasks.Csc", "Csc")); // ==> partial match
40
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("Microsoft.Build.Tasks.Csc", "Tasks.Csc")); // ==> partial match
41
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.ATask+NestedTask", "NestedTask")); // ==> partial match
42
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.ATask\\\\+NestedTask", "NestedTask")); // ==> partial match
43
Assert.False(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.CscTask", "Csc")); // ==> no match
44
Assert.False(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.MyCsc", "Csc")); // ==> no match
45
Assert.False(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.ATask\\.Csc", "Csc")); // ==> no match
46
Assert.False(
TypeLoader
.IsPartialTypeNameMatch("MyTasks.ATask\\\\\\.Csc", "Csc")); // ==> no match
52
Assert.False(
TypeLoader
.IsPartialTypeNameMatch("Microsoft.Build.Tasks.Csc", "Vbc"));
58
Assert.True(
TypeLoader
.IsPartialTypeNameMatch("Csc", "Microsoft.Build.Tasks.Csc"));
111
TypeLoader
typeLoader = new(TaskLoader.IsTaskClass);