You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ConcurrentQueue is duplicate with System.Threading.dll package #1859
This class is in the 2.0 and 3.5 builds of the framework. One solution would be to put it into our own namespace, since it is only used internally. That will require some aliasing where it's used. We could also experiment with changing it's visibility - not sure that will remove the conflict. A third solution would be for us to use the same package ourselves, although it most likely contains stuff we don't need.
@CharliePoole we had same issue, with clash of classes. So I made a PR resolving this, with the solution that @NN--- and you talked about. And that fixed it.
Activity
CharliePoole commentedon Oct 24, 2016
This class is in the 2.0 and 3.5 builds of the framework. One solution would be to put it into our own namespace, since it is only used internally. That will require some aliasing where it's used. We could also experiment with changing it's visibility - not sure that will remove the conflict. A third solution would be for us to use the same package ourselves, although it most likely contains stuff we don't need.
CharliePoole commentedon Oct 24, 2016
As a workaround, you can use an alias on the reference to System.Threading.dll. Or make your test project target .NET 4.0 or higher.
NN--- commentedon Oct 24, 2016
@CharliePoole If it is used internally then mark it internal and it will solve the issue.
Thanks.
CharliePoole commentedon Oct 24, 2016
@nn Certainly the easiest if it works. I guess I'm slightly distrustful of VS doing the logical thing. 😄
We kept these classes taken from Mono public simply because we didn't want to modify the source, but in retrospect maybe they should all be internal.
NN--- commentedon Oct 24, 2016
Thanks
Waiting for the update.
hknielsen commentedon Apr 5, 2017
@CharliePoole we had same issue, with clash of classes. So I made a PR resolving this, with the solution that @NN--- and you talked about. And that fixed it.