6 instantiations of LoadedType
Microsoft.Build (4)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
918
returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(MSBuild)), new
LoadedType
(typeof(MSBuild), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName, null);
924
returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(CallTarget)), new
LoadedType
(typeof(CallTarget), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName, null);
TypeLoader.cs (2)
377
return type != null ? new
LoadedType
(type, _assemblyLoadInfo, _loadedAssembly ?? type.Assembly, typeof(ITaskItem), loadedViaMetadataLoadContext: false) : null;
393
LoadedType loadedType =
new
(publicType, _assemblyLoadInfo, loadedAssembly, _context.LoadFromAssemblyPath(microsoftBuildFrameworkPath).GetType(typeof(ITaskItem).FullName), loadedViaMetadataLoadContext: true);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\AssemblyTaskFactory_Tests.cs (1)
215
LoadedType comparisonType = new
LoadedType
(typeof(TaskToTestFactories), _loadInfo, typeof(TaskToTestFactories).GetTypeInfo().Assembly, typeof(ITaskItem));
BackEnd\TaskExecutionHost_Tests.cs (1)
1248
LoadedType loadedType = new
LoadedType
(typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory), loadInfo, typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory).Assembly, typeof(ITaskItem));
21 references to LoadedType
Microsoft.Build (18)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1016
LoadedType
loadedType = _taskFactoryWrapper.TaskFactoryLoadedType;
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
43
private
LoadedType
_loadedType;
249
internal
LoadedType
InitializeFactory(
Instance\TaskFactories\TaskHostTask.cs (2)
78
private
LoadedType
_taskType;
135
LoadedType
taskType
Instance\TaskFactoryWrapper.cs (2)
83
internal TaskFactoryWrapper(ITaskFactory taskFactory,
LoadedType
taskFactoryLoadInfo, string taskName, IDictionary<string, string> factoryIdentityParameters)
101
public
LoadedType
TaskFactoryLoadedType
Instance\TaskRegistry.cs (1)
1377
LoadedType
loadedType = null;
Logging\LoggerDescription.cs (2)
202
LoadedType
loggerClass = (new TypeLoader(s_forwardingLoggerClassFilter)).Load(_loggerClassName, _loggerAssembly);
213
LoadedType
loggerClass = (new TypeLoader(s_loggerClassFilter)).Load(_loggerClassName, _loggerAssembly);
TaskLoader.cs (1)
46
LoadedType
loadedType,
TypeLoader.cs (7)
215
internal
LoadedType
Load(
229
internal
LoadedType
ReflectionOnlyLoad(
241
private
LoadedType
GetLoadedType(ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> cache, string typeName, AssemblyLoadInfo assembly, bool useTaskHost)
290
private ConcurrentDictionary<string,
LoadedType
> _publicTypeNameToLoadedType;
322
internal
LoadedType
GetLoadedTypeByTypeName(string typeName, bool useTaskHost)
380
private
LoadedType
GetLoadedTypeFromTypeNameUsingMetadataLoadContext(string typeName)
393
LoadedType
loadedType = new(publicType, _assemblyLoadInfo, loadedAssembly, _context.LoadFromAssemblyPath(microsoftBuildFrameworkPath).GetType(typeof(ITaskItem).FullName), loadedViaMetadataLoadContext: true);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\AssemblyTaskFactory_Tests.cs (2)
38
private
LoadedType
_loadedType;
215
LoadedType
comparisonType = new LoadedType(typeof(TaskToTestFactories), _loadInfo, typeof(TaskToTestFactories).GetTypeInfo().Assembly, typeof(ITaskItem));
BackEnd\TaskExecutionHost_Tests.cs (1)
1248
LoadedType
loadedType = new LoadedType(typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory), loadInfo, typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory).Assembly, typeof(ITaskItem));