I wanted to use two different versions of the same library (OpenCVSharp 2.x and OpenCVSharp 3.x) Well, I downloaded these two packages both in a separate project (lets call it OCV2Wrapper and OCV3Wrapper), and refer to both wrappers in my project. I had to rename libraries from one package (2.x) and reference them manually, because: Can we add 2 different versions of the same package to NuGet . I read about external aliases and I used an external alias in one of the wrappers (2.x in my case). But I have some serious problems:
- My renamed libraries are not copied to the startup project assembly (the one that references both wrappers), but is in the 2.x shell assembly
- It does not work, because for now it cannot find the type from my 2.x shell even when manually copying the renamed libraries from the 2.x shell.
What is the right approach for this scenario in C #?
I want to use both shells in the solution because version 2.x contains algorithms (SIFT and SURF) and 3.x verison contains algorithms (Kaze and AKaze). I can live that both packages will be from nuget, but I prefer that 3.x from nuget and 2.x be manually configured.
source share