|
|
|
@ -105,7 +105,7 @@ namespace ICSharpCode.NRefactory.TypeSystem |
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>IProjectContent that represents the assembly</returns>
|
|
|
|
/// <returns>IProjectContent that represents the assembly</returns>
|
|
|
|
[CLSCompliant(false)] |
|
|
|
[CLSCompliant(false)] |
|
|
|
public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition) |
|
|
|
public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition, string location = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (assemblyDefinition == null) |
|
|
|
if (assemblyDefinition == null) |
|
|
|
throw new ArgumentNullException("assemblyDefinition"); |
|
|
|
throw new ArgumentNullException("assemblyDefinition"); |
|
|
|
@ -166,6 +166,7 @@ namespace ICSharpCode.NRefactory.TypeSystem |
|
|
|
typeSystemTranslationTable[this.currentAssembly] = assemblyDefinition; |
|
|
|
typeSystemTranslationTable[this.currentAssembly] = assemblyDefinition; |
|
|
|
|
|
|
|
|
|
|
|
var result = this.currentAssembly; |
|
|
|
var result = this.currentAssembly; |
|
|
|
|
|
|
|
result.Location = location; |
|
|
|
this.currentAssembly = null; |
|
|
|
this.currentAssembly = null; |
|
|
|
this.currentModule = null; |
|
|
|
this.currentModule = null; |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
|