MONO_PATH support?

18 views
Skip to first unread message

Jonathan Pryor

unread,
Apr 7, 2009, 9:25:56 AM4/7/09
to mono-cecil
Potentially a silly question, but should Mono.Cecil support looking for
assemblies specified in the MONO_PATH and MONO_GAC_PREFIX environment
variables (in addition to the current GAC-probing logic)?

Specifically, recently on mono-devel-list someone reported that mdoc
wasn't finding all the types they were expecting [0]. They didn't list
which version of Mono they were using, so I don't know if this is due to
the Cecil-using version of mdoc or the Reflection-using version of mdoc,
but he did mention that he was using MONO_PATH, which Cecil doesn't use,
so I'm currently suspecting that this is the problem.

If this is the problem, then either apps need to support MONO_PATH if
appropriate, or Mono.Cecil does. I'd just like to know if there's a
preference one way or the other.

Thanks,

- Jon

[0]
http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html


Jb Evain

unread,
Apr 22, 2009, 8:16:43 AM4/22/09
to mono-...@googlegroups.com
Hey,

On 4/7/09, Jonathan Pryor <jonp...@vt.edu> wrote:
> Potentially a silly question, but should Mono.Cecil support looking for
> assemblies specified in the MONO_PATH and MONO_GAC_PREFIX environment
> variables (in addition to the current GAC-probing logic)?

Am not sure the default resolver should look into the MONO_PATH. On
the other hand, it's easy to compose a resolver which does so with a
default resolver.

--
Jb Evain <j...@nurv.fr>

Reply all
Reply to author
Forward
0 new messages