problem with versionning

  • Thread starter Thread starter Achim Zeeck
  • Start date Start date
A

Achim Zeeck

hi all -

i've got a problem with versioned assemblies, and maybe somebody can help:
i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put them
in the gac and produced a test app (testapp.exe) which references this
assembly (v1). additionally, i created an app.config (testapp.exe.config)
which references explicitly to version 2. when i run the testapp, it
*always* comes up with version 1.

thanks for any hints,
achim
 
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIndentity
name="sharedassembly" publicKeyToken="9a82ba6e51bfba16" culture="">
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</assemblyIndentity>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

hth -

achim
 
What's the culture of your assembly, it is a part of the full assembly name.
You may need to specify it in configure file.

Qiu
 
Back
Top