Baren,
If you have two versions of the dll, you need two physical versions of it
too.
For the App.Config variant you still need to have a reference to the
original dll. So for your V1 dll you won't need any assembly binding config
if the application is built referencing the first version dll.
But if it's built with the first version and you want it to load the second
you set oldVersion to 1.0.0.0 and newVersion to 2.0.0.0
--
Patrik L?wendahl
www.cshrp.net - 'Elegant code by witty programmers'
> Thanks Patrik,
>
> Well the 2nd solution is good one.. Actually i tried to impliment the same in my Application.cofig file to point to different version of assembly. but
every time it gets me the latest version's methods. Can you help me in
that.. 'czo it is waste to maintain 2 physical version of dll.
> what should i specify for "oldVersion" and "newVersion" for the 1st version of the assembly in Application config file.
>
> Thanks,
> Baren
Baren - 21 May 2004 08:06 GMT
Hi! Patrik
Well we maintain 2 physical versions of the dll then its the same old story of maintining the dll.. then wats the need of .NET
i think there might be someway where we can have one physical dll file and it will just refer to the different versions of the assemblies registered in GAC
Regards
Baren