Groups | Blog | Home
all groups > dotnet internationalization > march 2007 >

dotnet internationalization : Redirection policy file for multiple satellite assemblies


schaf NO[at]SPAM 2wire.ch
3/13/2007 6:40:24 AM
Hi NG !
I have to redirect 24 satellite assemblies to a new version. I would
like to do that with one policy file which looks like this:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ABC.My.Application.Lib.resources"
publicKeyToken="XyZ"
culture="de"/>
<bindingRedirect oldVersion="0.0.0.0-1.1.1.0"
newVersion="1.1.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity
name="ABC.My.Application.LibMaint.resources"
publicKeyToken="XyZ"
culture="de"/>
<bindingRedirect oldVersion="0.0.0.0-1.1.1.0"
newVersion="1.1.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="ABC.My.Application.UI.resources"
publicKeyToken="XyZ"
culture="de"/>
<bindingRedirect oldVersion="0.0.0.0-1.1.1.0"
newVersion="1.1.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="ABC.My.Application.BL.resources"
publicKeyToken="XyZ"
culture="de"/>
<bindingRedirect oldVersion="0.0.0.0-1.1.1.0"
newVersion="1.1.3.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

In the App.config this would work, but what's about a separate policy
dll ? What's the name of this policy dll or do I have to compile 24
policy dll's (I would prefer only one policy file) ?

Thanks and Regards
Marcel
ramk NO[at]SPAM Microsoft.com
4/3/2007 4:10:54 AM
Hi Marcel,

The following article: How to: Create a Publisher Policy
http://msdn2.microsoft.com/en-us/library/dz32563a(VS.80).aspx talks about
creating an assembly to do what you need.

Can you please take a look and see if that solves your issue?
Thanks
Ram
AddThis Social Bookmark Button