Reading the Xml of a Publisher Policy File in the Gac

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
 
J

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top