[Mono-list] Assembly with 2 versions in GAC

Julien Sobrier julien at sobrier.net
Thu Nov 3 13:34:17 EST 2005


Hello,
I have an issue with different version of assemblies being in the GAC:
/mnt/hgfs/platine/branches/jsobrier/platine/NUnit/Libraries/TestDatabaseAccess.cs(288,16):
The type IDataReader has two conflicting definitions, one comes from
System.Data, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 and the other from System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089error

(NAnt output)

>From what I read, this can be solved by adding the right information in
TestDatabaseAccess.dll.config file. Is it possible to do it at
compilation time? I'm surprised that it doesn't pick the version it was
compiled with (I compiled it with the 2.0.0.0 version)

Thank you
Julien


More information about the Mono-list mailing list