How can we help you today? How can we help you today?

Ambiguous Type Name in System.Threading.dll

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
Dan Guzman
0

Comments

2 comments

  • Rob C
    Hi Dan,

    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?
    Rob C
    0
  • Dan Guzman
    Yes, the alias did the trick. Thanks a lot for your help!
    Dan Guzman
    0

Add comment

Please sign in to leave a comment.