[Mono-dev] Installing policy file in the GAC?

Michi Henning michi at zeroc.com
Wed Mar 5 19:01:45 EST 2008


Hi,

I'm writing an install script that places an assembly into the GAC using 
gacutil.
However, with the assembly, I also need to install a policy file to control
backward compatibility with previous version. I know that the policy file
needs to go into the lib/mono/gac directory. But how do I get it there?

gacutil won't install a policy file in the GAC because the policy file isn't
an assembly. So, obviously, I have to copy it there from the install script.
But how can the install script find out where Mono is installed? Is there
any command I can use to get at the Mono installation directory?

Thanks,

Michi.


More information about the Mono-devel-list mailing list