diff --git a/.gitignore b/.gitignore index 813e7d15c..420d32c72 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ obj /lib/*.dll /ICSharpCode.NRefactory.Tests/PartCover/* _ReSharper*/* +Packages/NUnit* diff --git a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs index 29850ed3f..617f4b008 100644 --- a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs +++ b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs @@ -164,7 +164,7 @@ public IUnresolvedAssembly LoadModule(ModuleDefinition moduleDefinition) moduleAttributes = interningProvider.InternList(moduleAttributes); this.currentAssembly = new CecilUnresolvedAssembly(assemblyDefinition != null ? assemblyDefinition.Name.FullName : moduleDefinition.Name, this.DocumentationProvider); - currentAssembly.Location = moduleDefinition.FullyQualifiedName; + currentAssembly.Location = moduleDefinition.FileName; currentAssembly.AssemblyAttributes.AddRange(assemblyAttributes); currentAssembly.ModuleAttributes.AddRange(assemblyAttributes); @@ -310,6 +310,10 @@ public AssemblyDefinition Resolve(string fullName, ReaderParameters parameters) { return null; } + + public void Dispose() + { + } } #endregion @@ -903,8 +907,8 @@ void InitBaseTypes(TypeDefinition typeDefinition, IList baseType baseTypes.Add(ReadTypeReference(typeDefinition.BaseType)); } if (typeDefinition.HasInterfaces) { - foreach (TypeReference iface in typeDefinition.Interfaces) { - baseTypes.Add(ReadTypeReference(iface)); + foreach (InterfaceImplementation ifaceImpl in typeDefinition.Interfaces) { + baseTypes.Add(ReadTypeReference(ifaceImpl.InterfaceType)); } } } diff --git a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj index 4f089f7d1..29460d09d 100644 --- a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj +++ b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj @@ -87,7 +87,7 @@ - ..\..\cecil\Test\libs\nunit-2.5.10\nunit.framework.dll + ..\Packages\NUnit.2.6.4\lib\nunit.framework.dll @@ -669,9 +669,7 @@ - - - +