Hey,
On Sun, May 2, 2010 at 9:02 PM, Mikael Sundberg <[email protected]> wrote:
> It looks like it should be possible to use a custom assembly resolver
> in cecil 0.9.1, but the Instance member of GlobalAssemblyResolver is
> readonly and cannot be changed. How should I replace the default
> resovler?
You don't have to. Just pass a custom IAssemblyResolver to the
assemblies you're reading.
IAssemblyResolver customResolver = ...;
var module = ModuleDefinition.ReadModule (file, new ReaderParameters {
AssemblyResolver = customResolver });
--
Jb Evain <[email protected]>
--
--
mono-cecil