I've come up against the unlikely scenario when I reference two external assemblies that both have the same namespace and type names. When I try to use the type, the compiler throws an error that it cannot resolve which one I want to use.
I see that C# offers a mechanism to use aliases for references. You can even specify these aliases via the Property
window of a reference in Visual Studio 2008. How do I use this alias in my code? As I understand, I should be using the ::
operator, but it fails with the following error:
CS0432 - Alias not found
The usual .
operator fails as well.
In the output window I see that the compiler gets the alias passed correctly in its command line.
Any pointers on what I may be able to try next are greatly appreciated.