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-boun...@rubyforge.org 
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Andrius Bentkus
Sent: Monday, October 25, 2010 3:31 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Compiling on Mono?

On Mon, Oct 25, 2010 at 11:23 AM, Alistair Bush 
<ali_b...@gentoo.org<mailto:ali_b...@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.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to