How to Create a Publisher Policy Assembly

This post is only for a reference in how to create the config file and the command line arguments needed for the Assembly Linker (AL) tool to create the publisher policy file.

For a full reference on how to create a publisher policy file please refer to – http://msdn.microsoft.com/en-us/library/dz32563a.aspx

<assemblyIdentity name=”myAssembly”
publicKeyToken=”32ab4ba45e0a69a1″
culture=”en-us” />

<bindingRedirect oldVersion=”1.0.0.0″
newVersion=”2.0.0.0″/>

After creating the config file, you need to compile it into a dll using the Assembly Linker (al) utility as follows.
al /link:publisherPolicyFile /out:publisherPolicyAssemblyFile /keyfile:keyPairFile /platform:processorArchitecture
Load file into GAC



Categories: Misc

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: