[Ironruby-core] Compiling on Mono?

Curt Hagenlocher curth at microsoft.com
Mon Oct 25 09:45:39 EDT 2010

References in project files can be conditional. I don't have an example handy, but unless things have changed in the last year :), the project files should already have a conditional dependency on the Silverlight assemblies.

From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Andrius Bentkus
Sent: Monday, October 25, 2010 3:31 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Compiling on Mono?

On Mon, Oct 25, 2010 at 11:23 AM, Alistair Bush <ali_bush at gentoo.org<mailto:ali_bush at gentoo.org>> wrote:
> I got it compiling, there is a missing reference for Mono.Posix, one bad
> cast and you need to use CCI in the constants. Does someone know what CCI
> should be?
patches would be nice :)

I can't patch the csproj with the missing reference because it would break building on windows. Creating another set of csproj for the a mono build would be madness. Do csproj'ects support something like ifdef or is it possible to include a reference only when mono is used?

And the other change I made was a one liner, I don't think that attaching an entire patch is is really necessary for it. Just run xbuild with CCI: xbuild /property:TreatWarningsAsErrors=false /property:DefineConstants="DEBUG MONO" Ruby.csproj
and look at the warning outputs... O for god sake, I'll just attach it.
I used this branch: http://github.com/mletterle/ironruby/tree/linux as the base.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20101025/3f9e25b9/attachment-0001.html>

More information about the Ironruby-core mailing list