Reading the Xml of a Publisher Policy File in the Gac

  • Thread starter Thread starter james.tsao
  • Start date Start date
J

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
 
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.
 
Back
Top