I am developing a silverlight C# app, and I have added a reference to a Microsoft DLL and got the following message:
The type exists in both DLLs
Since I am using a control that is defined in both of the DLLs (one is associated with the SDK, the other one I added myself).
After did some research on the internet, I tried to make an alias of both of DLLs, and import them by using extern alias <alias_name>
. This approach solved some problem in the xaml.cs code behind, but did not really solve the problem in xaml. After I did this, Visual Studio complained that one of the controls (from the DLL I added) is not defined in the namespace.
So I am wondering if there is a way to specify namespace in XML using an alias?
Thank you.