Is the interface in Assembly2? There might be trouble referencing Assembly2 from Assembly1. The easiest way to test that theory would be to put both assemblies in the directory where iirb.exe is. If that works then I'm sure some of the other guys here can give you some tips on where to setup your assemblies.
Regards, Eric Nicholson On Mon, Jul 6, 2009 at 7:36 PM, Mario A Chavez <[email protected]>wrote: > Hi; > I have a custom C# Assembly1 which have interface ISomething and a C# > Assembly2 which have class Something, and this class implements the > interface like: > > public class Something : ISomething { } > > Using iirb I try to create an instace of that class but it complains about > the class not being defined, I do use iirb as follow: > > requiere 'mscorlib' > requiere 'System' > > require File.dirname(__FILE__) + '/build/assembly1.dll' > require File.dirname(__FILE__) + '/build/assembly2.dll' > > include Assembly1 > include Assembly2 > > @s = Something.new > <-- Here it fails telling me that the class is not defined, but if I remove > the code that implements the interface, it just works fine. My guess is that > somehow is not resolving the interface, but I'm not sure how can I fix this. > > Thanks > > Mario Alberto Chávez > http://mario-chavez.blogspot.com/ > > > > > _______________________________________________ > Ironruby-core mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core > >
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
