Forum: IronRuby Namespace Conflict System.Linq

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6beced7e1914e4ed0b7232c73e6eac43?d=identicon&s=25 Aaron Clauson (aaronc)
on 2009-04-14 04:29
Hi,

I host an IronRuby engine in my app and get a lot of compiler warnings
about duplicate definitions for classes in System.Linq. In the past it
wasn't much of an issue but now that I have started using some Linq
functionality I have found myself having to add and remove System.Linq
and Microsoft.Scripting.Core to get my app to compile. It seems that
when there is a conflict the assembly reference added last wins.

Is there a better way to solve this? Are the DLR and main .Net Linq
namespaces going to merge in the future?

Thanks,

Aaron
E1deaac6561498a0e7472e6268ea9ccc?d=identicon&s=25 Jimmy Schementi (Guest)
on 2009-04-15 00:40
(Received via mailing list)
Yes, they are going to merge. However, I'm pretty sure there's no good
way to get rid of the warnings without us having to rewrite the
namespaces of Microsoft.Scripting.Core.dll. If you really want to get
rid of those warnings, you can grab IronRuby from
http://dlr.codeplex.com, which has current IronRuby bits working against
a rewritten version of Microsoft.Scripting.Core.dll.

~js
This topic is locked and can not be replied to.