[Mono-dev] Installing policy file in the GAC?
Carlos Alberto Cortez
calberto.cortez at gmail.com
Wed Mar 5 20:08:46 EST 2008
> 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?
You don't copy the file directly - but use the assembly linker (al.exe)
to create an assembly based on the configuration file:
al /link:policy-file.config /out:policy.1.0.YourAssembly.dll /keyfile:YourAssemblyKey.snk
then you can just gacutil on the generated assembly:
gacutil -i policy.1.0.YourAssembly.dll
More information about the Mono-devel-list