Been playing a bit with the resolver trying to get things to be optimal.

If I use the default resolver as it is we tend to get a lot of cecil
errors on missing references etc (not sure why). We changed to use
this ...

        private static DefaultAssemblyResolver GetAssemblyResolver(string path)
        {
            var mdr = new DefaultAssemblyResolver();
            var s = mdr.GetSearchDirectories();
            foreach (var q in s) mdr.RemoveSearchDirectory(q);
            mdr.AddSearchDirectory(path);
            return mdr;
        }

We pass in the path of the directory with assemblies in it. For some
reason changing this to just use a default resolver doesn't work....

We would also like to be able to resolve the framework assemblies. Is
this possible? I tried a while ago what I thought would be obvious of
just saying something like:

        private static DefaultAssemblyResolver GetAssemblyResolver(string path)
        {
            var mdr = new DefaultAssemblyResolver();
            mdr.AddSearchDirectory(path);
            return mdr;
        }

But that ran into issues as well.

Greg

-- 
Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer
de votre attention

-- 
--
mono-cecil

Reply via email to