2 types derived from AssemblyLoadInfo
Microsoft.Build (2)
AssemblyLoadInfo.cs (2)
123
private sealed class AssemblyLoadInfoWithName :
AssemblyLoadInfo
167
private sealed class AssemblyLoadInfoWithFile :
AssemblyLoadInfo
56 references to AssemblyLoadInfo
Microsoft.Build (37)
AssemblyLoadInfo.cs (6)
20
internal abstract class AssemblyLoadInfo : ITranslatable, IEquatable<
AssemblyLoadInfo
>
25
internal static
AssemblyLoadInfo
Create(string assemblyName, string assemblyFile)
75
public bool Equals(
AssemblyLoadInfo
other)
90
AssemblyLoadInfo
otherAssemblyInfo = obj as
AssemblyLoadInfo
;
109
public static
AssemblyLoadInfo
FactoryForTranslation(ITranslator translator)
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);
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
250
AssemblyLoadInfo
loadInfo,
Instance\TaskRegistry.cs (7)
444
taskRegistry.RegisterTask(taskName,
AssemblyLoadInfo
.Create(assemblyName, assemblyFile), taskFactory, taskFactoryParameters, parameterGroupAndTaskElementRecord, loggingContext, projectUsingTaskXml, ConversionUtilities.ValidBooleanTrue(overrideUsingTask));
683
AssemblyLoadInfo
assemblyLoadInfo,
1127
private
AssemblyLoadInfo
_taskFactoryAssemblyLoadInfo;
1164
internal RegisteredTaskRecord(string registeredName,
AssemblyLoadInfo
assemblyLoadInfo, string taskFactory, Dictionary<string, string> taskFactoryParameters, ParameterGroupAndTaskElementRecord inlineTask, int registrationOrderId)
1211
internal
AssemblyLoadInfo
TaskFactoryAssemblyLoadInfo
1374
AssemblyLoadInfo
taskFactoryLoadInfo = TaskFactoryAssemblyLoadInfo;
1814
translator.Translate(ref _taskFactoryAssemblyLoadInfo,
AssemblyLoadInfo
.FactoryForTranslation);
LoadedType.cs (2)
30
internal LoadedType(Type type,
AssemblyLoadInfo
assemblyLoadInfo, Assembly loadedAssembly, Type iTaskItemType, bool loadedViaMetadataLoadContext = false)
189
internal
AssemblyLoadInfo
Assembly { get; private set; }
Logging\LoggerDescription.cs (5)
64
_loggerAssembly =
AssemblyLoadInfo
.Create(loggerAssemblyName, loggerAssemblyFile);
284
AssemblyLoadInfo
.Create(_loggerAssembly.AssemblyName, Path.GetFullPath(_loggerAssembly.AssemblyFile));
293
private
AssemblyLoadInfo
_loggerAssembly;
335
_loggerAssembly =
AssemblyLoadInfo
.Create(assemblyName, assemblyFile);
349
translator.Translate(ref _loggerAssembly,
AssemblyLoadInfo
.FactoryForTranslation);
TypeLoader.cs (14)
34
private static ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>> s_cacheOfLoadedTypesByFilter = new ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>>();
39
private static ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>> s_cacheOfReflectionOnlyLoadedTypesByFilter = new ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>>();
161
private static Assembly LoadAssembly(
AssemblyLoadInfo
assemblyLoadInfo)
189
private static Assembly LoadAssemblyUsingMetadataLoadContext(
AssemblyLoadInfo
assemblyLoadInfo)
217
AssemblyLoadInfo
assembly,
231
AssemblyLoadInfo
assembly)
241
private LoadedType GetLoadedType(ConcurrentDictionary<Func<Type, object, bool>, ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>> cache, string typeName,
AssemblyLoadInfo
assembly, bool useTaskHost)
245
ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes> loadInfoToType =
246
cache.GetOrAdd(_isDesiredType, (_) => new ConcurrentDictionary<
AssemblyLoadInfo
, AssemblyInfoToLoadedTypes>());
278
private
AssemblyLoadInfo
_assemblyLoadInfo;
307
internal AssemblyInfoToLoadedTypes(Func<Type, object, bool> typeFilter,
AssemblyLoadInfo
loadInfo)
Microsoft.Build.Engine.UnitTests (19)
BackEnd\AssemblyTaskFactory_Tests.cs (2)
33
private
AssemblyLoadInfo
_loadInfo;
689
_loadInfo =
AssemblyLoadInfo
.Create(typeof(TaskToTestFactories).GetTypeInfo().Assembly.FullName, null);
BackEnd\TaskExecutionHost_Tests.cs (2)
1246
AssemblyLoadInfo
loadInfo =
AssemblyLoadInfo
.Create(typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory).GetTypeInfo().FullName, null);
BackEnd\TaskRegistry_Tests.cs (14)
121
AssemblyLoadInfo
taskAssemblyLoadInfo = registrationRecords[0].TaskFactoryAssemblyLoadInfo;
124
Assert.Equal(taskAssemblyLoadInfo,
AssemblyLoadInfo
.Create(assemblyName, assemblyFile)); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
161
AssemblyLoadInfo
taskAssemblyLoadInfo = registrationRecords[0].TaskFactoryAssemblyLoadInfo;
166
Assert.Equal(taskAssemblyLoadInfo,
AssemblyLoadInfo
.Create(assemblyName, assemblyFile == null ? null : Path.GetFullPath(assemblyFile))); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
204
AssemblyLoadInfo
singletonAssemblyLoadInfo = singletonBucket[0].TaskFactoryAssemblyLoadInfo;
207
Assert.Equal(singletonAssemblyLoadInfo,
AssemblyLoadInfo
.Create(assemblyName, assemblyFile)); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
220
if (record.TaskFactoryAssemblyLoadInfo.Equals(
AssemblyLoadInfo
.Create(assemblyName, assemblyFile)))
227
if (record.TaskFactoryAssemblyLoadInfo.Equals(
AssemblyLoadInfo
.Create(assemblyName, assemblyFile)))
268
AssemblyLoadInfo
taskAssemblyLoadInfo = registrationRecords[0].TaskFactoryAssemblyLoadInfo;
271
Assert.Equal(taskAssemblyLoadInfo,
AssemblyLoadInfo
.Create(assemblyName, assemblyFile == null ? null : Path.GetFullPath(assemblyFile))); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
1149
AssemblyLoadInfo
taskAssemblyLoadInfo = registeredTaskRecords[0].TaskFactoryAssemblyLoadInfo;
1150
Assert.Equal(taskAssemblyLoadInfo,
AssemblyLoadInfo
.Create(expandedAssemblyName, expandedAssemblyFile == null ? null : Path.GetFullPath(expandedAssemblyFile))); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
1202
AssemblyLoadInfo
taskAssemblyLoadInfo = registeredTaskRecords[0].TaskFactoryAssemblyLoadInfo;
1203
Assert.Equal(taskAssemblyLoadInfo,
AssemblyLoadInfo
.Create(expandedAssemblyName, Path.GetFullPath(expandedAssemblyFile))); // "Task record was not properly registered by TaskRegistry.RegisterTask!"
TypeLoader_Tests.cs (1)
114
typeLoader.Load("TypeLoader_Tests",
AssemblyLoadInfo
.Create(null, newAssemblyLocation), useTaskHost: true);