none
Version matching in the GAC? RRS feed

  • Question

  • Hi!
    I'm unsure as to how the version matching goes with side-by side execution.
    Assuming I've got a dll "Main" (outside GAC) binding to another dll "Sub 1.0.0.0" in the GAC.
    Now, what changes to the Sub version are allowed so that Main uses the newer one?
    1. Sub 1.0.0.1?
    2. Sub 1.0.1.0?
    3. Sub 1.1.0.0?
    4. Sub 2.0.0.0?
    Main itself is an assembly that gets loaded at runtime as a byte array with System.Reflection.Assembly.Load(byte[] rawAssembly).

    Lots of Greetings!
    Volker
    Volker
    Tuesday, March 9, 2010 6:09 PM

Answers

  • .NET requires exact version match, unless you change it in config file or publisher policy (that's probably what you want to use in your case if Sub.dll is separate component with its own servicing cycle).
    Check out Redirecting Assembly Version article on MSDN for details.

    -Karel
    • Marked as answer by Hetzi Tuesday, March 9, 2010 7:44 PM
    Tuesday, March 9, 2010 7:40 PM
    Moderator

All replies

  • .NET requires exact version match, unless you change it in config file or publisher policy (that's probably what you want to use in your case if Sub.dll is separate component with its own servicing cycle).
    Check out Redirecting Assembly Version article on MSDN for details.

    -Karel
    • Marked as answer by Hetzi Tuesday, March 9, 2010 7:44 PM
    Tuesday, March 9, 2010 7:40 PM
    Moderator
  • Bad luck.
    Thanks a lot!
    Volker
    Volker
    Tuesday, March 9, 2010 7:47 PM