[Mono-list] gacing assemblies

Sebastien Pouliot sebastien.pouliot at gmail.com
Wed Nov 24 14:52:25 EST 2010


On Wed, 2010-11-24 at 11:25 -0800, Steve Lessard wrote:
> Last night I opened this
> bug https://bugzilla.novell.com/show_bug.cgi?id=655684 because Mono's
> gacutil cannot gac delay-signed assemblies. (.NET's gacutil works just
> fine with delay-signed assemblies.) This bug in Mono's gacutil is
> blocking me so I want to find a workaround. One option in the .NET
> world is to use sn.exe -Vr to register the assembly for skipping
> strongname validation. Unfortunately Mono's sn.exe tool hasn't
> implemented the -Vr feature, though curiously it has implemented the
> -Vl and -Vf features both of which only apply to assemblies that have
> been registered for skipping strong name validation. This leads me to
> believe that there must be some way to manually register an assembly
> for skipping strongname validation.

No, that was never needed, so it never got fully implemented. Most of
the logic exists in StrongNameManager.cs. Patches welcome to complete
it.

> I know that when .NET's sn.exe registers an assembly for skipping
> strongname validation what really happens is a key is created in the
> registry, e.g. HKEY_LOCAL_MACHINE\System\StrongName\Verification
> \Microsoft.Rtc.Collaboration,31BF3856AD364E35. In .NET it is possible
> to manually register an assembly for skipping strong name validation
> by creating a similar reg key. Does Mono have an analogous way
> to manually register an assembly for skipping strongname validation?

Try "-bootstrap" on your gacutil command-line (I never tried it myself
but it was an easy find by reading the source code ;-)

Sebastien




More information about the Mono-list mailing list