You need to alias the reference. To do this, go to Solution Explorer and select the reference you want to alias. View the Properties and edit the Aliases field to add a unique alias name.

1551000596983

Once you’ve defined a unique alias, you edit your code to add the extern alias declaration.

extern alias myalias; Finally, you reference the types via the alias as in (this example aliased System.dll):

myalias::System.Diagnostics.Trace.WriteLine(“I referenced this via my alias.”); This now targets the exact reference you want, even if other references also provide a type with the same name and namespace.