0

Hi,

I have an application where I have to use two dll files as reference to my project. The thing is, my dll files both have the same name, but are something like different versions. I am not able to add both as references becoz of clash in name. And I cannot change the name of one of the dll files, as it is a very huge task of changing other fragments of code.

What can I do to add both as reference. Someone help me please

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by sknake
Featured Replies
  • 1
    sknake 1,622   7 Years Ago

    As far as I know you can't do that easily. You could load one DLL in a separate app domain and access it via remoting. You could also "hack" one of the DLLs and change the version, namespace, name, etc. To modify a DLL you need the [URL="http://www.red-gate.com/products/reflector/"].NET Reflector[/URL] and … Read More

  • 3
    __avd 1,826   7 Years Ago

    From the MSDN - [URL="http://msdn.microsoft.com/en-us/library/ms173212.aspx"]extern alias (C# Reference)[/URL] SUMMARY: To reference two assemblies with the same fully-qualified type names, an alias must be specified at a command prompt. Take a look at this blog - [URL="http://blogs.msdn.com/abhinaba/archive/2005/11/30/498278.aspx"]http://blogs.msdn.com/abhinaba/archive/2005/11/30/498278.aspx[/URL] Read More

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.