[Mono-dev] corlib version and #if symbol questions
Sebastien Pouliot
sebastien.pouliot at gmail.com
Wed Aug 17 11:06:38 EDT 2005
On Wed, 2005-17-08 at 16:48 +0200, Kornél Pál wrote:
> >From mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs:
>
> #if (NET_2_0)
> private const string xmlAssembly = ", System.Security, Version=2.0.3600.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
> #elif (NET_1_1)
> private const string xmlAssembly = ", System.Security, Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
> #elif (NET_1_0)
> private const string xmlAssembly = ", System.Security, Version=1.0.3300.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
> #else
> private const string xmlAssembly = ", System.Security, Version=0.0.0.0,
> Culture=neutral, PublicKeyToken=null";
> #endif
>
> When is an assembly compiled without version and public key?
(Almost) never. This has been useful for debugging under Windows (so
that I could load Mono's System.Security.dll and not MS one).
This is a very specific case and it doesn't need to be in SVN, so you
can remove that hack without problems (as I can re-hack it on my side if
I ever need to debug this again).
Sebastien
More information about the Mono-devel-list
mailing list