[Mono-devel-list] Assembly versioning

Miguel de Icaza miguel at ximian.com
Sun May 16 12:37:26 EDT 2004


Hello,

> The Mono runtime appears to require an exact match between compile-time and 
> run-time version numbers, at least as far as major and minor version -- I'm 
> not sure about the revision and build number. For example, if I compile 
> 'version.cs' and reference version 1:2:3400:0 of System.Xml, mono will reject 
> the executable 'version.exe' if it finds version 1.0.5500 of System.Xml at 
> runtime.
> 
> This is not consistent with .NET. .NET will run applications where the version 
> numbers differ, at least in the minor version number. (I am not sure about 
> the major version numbers.)

This is a side effect of the GAC.  You need your 1.2.3400 System.Xml
assembly installed into the GAC for mono to pick it up.

We should research why .NET loads assemblies that it has no support for,
I find that intriguing. 

.NET 1.0 has assemblies with versions 1.0.3300.0
.NET 1.1 has assemblies with versions 1.0.5000.0
.NET 2.0 (preview) uses 2.0.3600

Miguel



More information about the Mono-devel-list mailing list