.NET - Multiple libraries with the same namespace - referencing

后端 未结 5 1172
天涯浪人
天涯浪人 2020-12-09 09:14

Today I am faced with a curious challenge...

This challenge involves two .NET libraries that I need to reference from my application. Both of which I have no control

5条回答
  •  一生所求
    2020-12-09 10:15

    Wow, thats tricky. I tink, I would create two wrapper-DLLs:

    1. MyBarWrapper.dll (which has a reference to bar.dll)
    2. MyFooWrapper.dll (which has a reference to foo.dll)

    and support different namespaces there.

提交回复
热议问题