C#, Shared Assemblies, publisher policy not working, MS VS .NET 2013 -


i can't figured out how use publisher policy correctly , seem have similiar issue related to:

how make publisher policy file redirect assembly request

i've created shared assemply named "sharedassembly.dll" in version "1.0.0.0", , in version "2.0.0.0". both instaled in gac (msil_gac, target .net framework 4.5).

i've created following publisher policy file *.xml (redirecting older version "1.0.0.0" on purpose behaviour):

<?xml version="1.0" encoding="utf-8" ?> <configuration>   <runtime>     <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">       <dependentassembly>         <assemblyidentity           name="sharedassembly"           publickeytoken="89f6ea550599ca14"           culture="neutral"/>         <bindingredirect oldversion="2.0.0.0"                        newversion="1.0.0.0"/>       </dependentassembly>     </assemblybinding>   </runtime> </configuration> 

then i've created publisher policy assembly using command:

al /link:app.config /out:policy.2.0.sharedassembly.dll /keyf:f:\visualstudio\klucz.snk /v:1.0.0.0 /platform:anycpu 

of course, installed gac.

then created new console application, added reference "sharedassembly.dll", doesn't work :(

it still connects 2.0.0.0 version of shared assembly.

i tried many advices, using fuslogvw.exe (no errors shown), getting rid of "culture" attribute, etc., doesn't help.

i think problem not want point older version of .dll?

please me fix issue, cause i've tried many things , yet can't make work.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -