If you spec an AssemblyResolver in you ReaderParameters when calling read for an ModuleDef/ AssemblyDef the SubModules are still created with an new AssemblyResolver.
I changed that with the changes of this commit.
If that isnt correct I´d like to do that just under some a condition so that you can enable such a behavior/ or impl. something like an SubModuleReaderParametersProvider or that the ReaderParameters have a method create ReaderParameters for SubModules or something like that.
Merge pull request #119 from Fijo/master

adjust AssemblyResolver to ReaderParameters for SubModuleDefs
More resharper settings
Normalize line endings
Add gitattributes
Update to nunit 2.6.2
Avoid static state in the pdb reader
Check that the mdb guid matches the module guid when reading the symbol file
Workaround a bug in a old Mono C# compiler for debug symbols in iterators
Fixed EventAttributes in EventDefinition.IsRuntimeSpecialName.
Merge pull request #134 from Ark-kun/patch-1

Fixed EventAttributes in EventDefinition.IsRuntimeSpecialName.
Improve exception and error message when trying to write mixed-mode assemblies. Fix #131
Add test for resolving portable class libraries references
Handle resolving of retargeteable references
Add Scope property to ResolutionException
ImportScope now checks before returning new scope that the old scope is not the same as the Import.module. If it is the same it returns the Import.module so a self reference can be avoided.
Merge pull request #138 from esdrubal/ImportScope

Avoid self reference in ImportScope.
Add some new internal APIs to remap types.

* Import.cs (MetadataImporter):
  - Make `ImportType(TypeReference,ImportGenericContext)` virtual.
  - Make `ImportAssemblyName(AssemblyNameReference)' protected virtual.

* ModuleDefinition.cs:
  - Add new internal `ICustomMetadataWriter` interface.
  - Add `ModuleDefinition.SetMetadataImporter' to provide a custom
    importer (subclass of `MetadataImporter' which may use the new
    virtuals to override).
  - Add `ModuleDefinition.CustomMetadataWriter` property to provide
    a `ICustomMetadataWriter' to remap TypeRef tokens.

* AssemblyWriter.cs:
  - MetadataBuilder.GetTypeRefToken(): Use the new optional
    `ICustomMetadataWriter' to allow remapping of TypeReference,
    an implementation may choose to either replace TypeReference
    with a different one or provide a custom MetadataToken.

All the newly added APIs are internal and may change in future.
They are used in an internal Xamarin project, which patches the
build to add `[assembly: InternalsVisibleTo]'.
Unescape a type AssemblyQualifiedName if needed, ref: http://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname.aspx
Merge pull request #142 from spouliot/master

If needed unescape a type AssemblyQualifiedName