Ambiguous Type Name in System.Threading.dll
Dan Guzman
Posts: 20
I have an application that's trying to use the .NET type System.Collections.Concurrent.ConcurrentQueue, but there seems to be a conflict with a type of the same name in the System.Threading.dll required for the comparison SDK. Is there a around for this error?
The type 'System.Collections.Concurrent.ConcurrentQueue<T>' exists in both 'c:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5mscorlib.dll' and 'C:Program Files (x86)Red GateSQL Comparison SDK 11AssembliesSQL CompareSystem.Threading.dll'
Thanks,
Dan
The type 'System.Collections.Concurrent.ConcurrentQueue<T>' exists in both 'c:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5mscorlib.dll' and 'C:Program Files (x86)Red GateSQL Comparison SDK 11AssembliesSQL CompareSystem.Threading.dll'
Thanks,
Dan
Comments
You'll have to use an alias when referring to the version of System.Threading.dll from the Comparison SDK. Right click the reference in Visual Studio and in Aliases, change it from global to something else, say threading for example. In your code you can then use .NET framework threading types as normal.
See this Stack Overflow post for more info - http://stackoverflow.com/questions/2866 ... l-studio-8
Does that help?
Redgate Software