[Mono-devel-list] Bride of GAC

Michal Moskal malekith at pld-linux.org
Tue May 11 18:02:20 EDT 2004


On Tue, May 11, 2004 at 05:49:52PM -0400, John Luke wrote:
> >><>However, the resolving from the GAC is fairly broken in general.
> >>
> >>How do you specify versions? like 1.1 vs 2.0 or in the future, gtk-sharp
> >>1.0 vs whatever.
> >
> This is what I want to know.  Is it only about specifying versions of 
> assemblies that the fullpath is needed?   If so maybe there is a better 
> solution to doing that than using the paths, or maybe not.  A few 
> options that come to mind without even looking at how java does it, or C 
> compilers are:
> 1. Use the newest version available by default

Doesn't seem to be good idea. Even now, for example, most people who
have preview 2.0 assemblies installed still use 1.0 for regular compilations.

> 2. Otherwise the version can be specified /r:System.dll,version=1.1

This is difficult to implement in a portable way (i.e. so it works on
both MS and mono). And here I'm talking just about other compilers
beside mcs. mcs vs csc compatibility will be lost anyway.

> 3. allow mcs to have --with-net11 --with-net20 switches or something

How should compiler know which gtk-sharp belongs to net20 and which to
net10? And how about foobar.dll? And different versions of baz.dll and
qux.dll?

I believe file paths are best suggestion here. And pkg-config makes
using them quite easy.

-- 
: Michal Moskal :: http://www.kernel.pl/~malekith :: GCS !tv h e>+++ b++
: When in doubt, use brute force. -- Ken Thompson :: UL++++$ C++ E--- a?



More information about the Mono-devel-list mailing list