|
|
@ -267,13 +267,11 @@ namespace ICSharpCode.ILSpy |
|
|
|
foreach (LoadedAssembly loaded in assemblyList.GetAssemblies()) { |
|
|
|
foreach (LoadedAssembly loaded in assemblyList.GetAssemblies()) { |
|
|
|
var asmDef = loaded.GetAssemblyDefinitionOrNull(); |
|
|
|
var asmDef = loaded.GetAssemblyDefinitionOrNull(); |
|
|
|
if (asmDef != null && data.fullName.Equals(data.isWinRT ? asmDef.Name.Name : asmDef.FullName, StringComparison.OrdinalIgnoreCase)) { |
|
|
|
if (asmDef != null && data.fullName.Equals(data.isWinRT ? asmDef.Name.Name : asmDef.FullName, StringComparison.OrdinalIgnoreCase)) { |
|
|
|
|
|
|
|
LoadedAssemblyReferencesInfo.AddMessageOnce(data.fullName, MessageKind.Info, "Success - Found in Assembly List"); |
|
|
|
return loaded; |
|
|
|
return loaded; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (assemblyLoadDisableCount > 0) |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.isWinRT) { |
|
|
|
if (data.isWinRT) { |
|
|
|
file = Path.Combine(Environment.SystemDirectory, "WinMetadata", data.fullName + ".winmd"); |
|
|
|
file = Path.Combine(Environment.SystemDirectory, "WinMetadata", data.fullName + ".winmd"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -291,11 +289,14 @@ namespace ICSharpCode.ILSpy |
|
|
|
if (file != null && loadingAssemblies.TryGetValue(file, out asm)) |
|
|
|
if (file != null && loadingAssemblies.TryGetValue(file, out asm)) |
|
|
|
return asm; |
|
|
|
return asm; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (assemblyLoadDisableCount > 0) |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
if (file != null) { |
|
|
|
if (file != null) { |
|
|
|
LoadedAssemblyReferencesInfo.AddMessage(data.fullName, MessageKind.Info, "Success - Loading from: " + file); |
|
|
|
LoadedAssemblyReferencesInfo.AddMessage(data.fullName, MessageKind.Info, "Success - Loading from: " + file); |
|
|
|
asm = new LoadedAssembly(assemblyList, file) { IsAutoLoaded = true }; |
|
|
|
asm = new LoadedAssembly(assemblyList, file) { IsAutoLoaded = true }; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
LoadedAssemblyReferencesInfo.AddMessage(data.fullName, MessageKind.Error, "Could not find reference: " + data.fullName); |
|
|
|
LoadedAssemblyReferencesInfo.AddMessageOnce(data.fullName, MessageKind.Error, "Could not find reference: " + data.fullName); |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
loadingAssemblies.Add(file, asm); |
|
|
|
loadingAssemblies.Add(file, asm); |
|
|
|