[Mono-dev] Mono version numbering

Miguel de Icaza miguel at novell.com
Thu Nov 1 19:49:18 EDT 2007


> This is definitely not the case.  For example, a simple test program
> compiled with mcs (v1) in Ubuntu 6.06 will work with the mcs-compiled
> nunit, but crashes when the same program is compiled with gmcs (v2).
> It's possible that this was fixed in a later version of mono.

The explanation is very simple, the source of the problem is that you
can only load one version of mscorlib and the startup program determines
which mscorlib is loaded.

In the case of nunit, if you run say "nunit-console" that will load the
1.0 runtime, and if that later tries to load an assembly that was
compiled with 2.0 it will load it, but it will later fail when the
assembly tries to reference 2.0 features.

That is why some commands have the "2" suffix (in this case,
nunit-console2) because they trigger loading the 2.0 mscorlib (these
include: al2  ilasm2  mkbundle2  mono-api-info2  monop2  mono-service2
nunit-console2  resgen2  wsdl2)

Miguel



More information about the Mono-devel-list mailing list