You need to specify a link. To do this, go to Solution Explorer and select the link for which you want to use an alias. View the properties and edit the Aliases field to add a unique alias name.

Once you have defined a unique alias, you will edit your code to add an extern alias declaration.
extern alias myalias;
Finally, you refer to types through an alias, as in (this example is aliased System.dll):
myalias::System.Diagnostics.Trace.WriteLine("I referenced this via my alias.");
Now this points to the desired link, even if other links also provide a type with the same name and namespace.
For more information about aliases, see fooobar.com/questions/98068 / ... on What is the use of the assembly link alias property .
source share