> 
> 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

See http://msdn2.microsoft.com/en-us/library/dz32563a(vs.71).aspx

Carlos.

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to