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