DLL Version Control

  • Thread starter Thread starter greatbarrier86
  • Start date Start date
G

greatbarrier86

Hi,

Where should i begin if i want to read about controling DLL versions and
dependences? I'd like to make sure i can say that X.DLL requires version XXX
of Y.dll but i've never worked with this before. Can anyone get me started?

Jason
 
greatbarrier86 said:
Where should i begin if i want to read about controling DLL versions and
dependences? I'd like to make sure i can say that X.DLL requires version
XXX
of Y.dll but i've never worked with this before. Can anyone get me
started?

If you add a Strong Name to Y.dll, then X.dll will always try to load
the same version Y with which it was compiled. If you wish to allow also
other versions, you can add a .config file to the .exe that loads X
containing a BindingRedirect policy. If you want to always redirect all
calls to version XXX of Y into a different version of Y, then you can ad a
Publisher Policy assembly to the GAC.

You can start reading here:
http://msdn.microsoft.com/en-us/library/aa309359(VS.71).aspx
 
Back
Top