views:

52

answers:

0

How do I bind any version or a range of versions of an assembly by using the app.config?

I'm currently binding the MySql.Data assembly like this:

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727">
      <qualifyAssembly
          partialName="MySql.Data"
          fullName="MySql.Data, Version=6.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"/>
    </assemblyBinding>
  </runtime>

Any version of MySql.Data other than 6.2.2.0 is not working this way. The versions of this assembly are changing fast so I either want to bind any or all versions beginning with 6.2 to my application without changing the app.config each time.