Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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.
  • Loading branch information...
commit 199dc11a486ab7664dbe69003b6862c66410a3f0 1 parent ec2a54f
@Fijo Fijo authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Mono.Cecil/AssemblyReader.cs
1  Mono.Cecil/AssemblyReader.cs
@@ -552,6 +552,7 @@ public Collection<ModuleDefinition> ReadModules ()
var parameters = new ReaderParameters {
ReadingMode = module.ReadingMode,
SymbolReaderProvider = module.SymbolReaderProvider,
+ AssemblyResolver = module.AssemblyResolver
modules.Add (ModuleDefinition.ReadModule (
Please sign in to comment.
Something went wrong with that request. Please try again.