Home All Groups Group Topic Archive Search About

Reading the Xml of a Publisher Policy File in the Gac

Author
18 Jan 2006 10:23 PM
james.tsao
Say I have a publisher policy file in my Gac:
policy.1.0.Acme.Widgets
How can I get the underlying Xml resource for this Publisher Policy
File.  Also, is there a straightforward way for me to do this in C#?
thanks in advance.

JT

Author
20 Jan 2006 3:32 PM
james.tsao
to answer my own question:
..NET Framework 1.* installs Gac assemblies to %WINDIR%\GAC

from there, assemblies & their linked resources are located in:
<assemblyname>/<version>__<pubkeytoken>

I was able to load the publisher policy file xml from that location.

caveat: This location might have changed in .NET 2.0 and future
vesions.  Microsoft makes no promises that Gac assemblies will be
stored in the above layout for all versions of the .NET framework.

AddThis Social Bookmark Button