How to use two different versions of same dll in vb.net web application?
-
Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!
Regards, Affan Toor
-
Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!
Regards, Affan Toor
Are these COM-based, normal library or .NET .DLL's??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!
Regards, Affan Toor
-
Are these COM-based, normal library or .NET .DLL's??
A guide to posting questions on CodeProject[^]
Dave KreskowiakThanks for reply. these are .NET DLLs. basically our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version.
Regards, Affan Ahmad Toor
-
why you want this? i've a generic solution, but will be very painstaking... so, depending on why you want that, we can delivery a simple solution...
thanks for reply. our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version. if you have any alternative solution then please share.
Regards, Affan Ahmad Toor
-
thanks for reply. our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version. if you have any alternative solution then please share.
Regards, Affan Ahmad Toor
i don't know if this will work on VB, but i've found this workaround: http://blogs.msdn.com/b/abhinaba/archive/2005/11/30/498278.aspx[^] also, this post from stackOverflow can be useful: http://stackoverflow.com/questions/5916855/using-multiple-versions-of-the-same-dll[^] also, i've found that in SharpDevelop you could simple select the reference in the solution explorer, click properties and set a alias, this works for VB and C#, i can't verify that this is true for visual studio (i don't have it here), but its a good start point if nothing works, the solution is to create 2 more class library projects and warp each version in a diferent namespace... too much work :(( EDIT: i haven't managed to reference the alias defined in SharpDevelop into the code, so, i think you will be forced to warp the dlls...
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
-
Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!
Regards, Affan Toor