On Mon, Oct 25, 2010 at 11:23 AM, Alistair Bush <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.
From d1e590a58e5f769bcc680ede3159877e0a5f1e68 Mon Sep 17 00:00:00 2001
From: Andrius Bentkus <andrius.bent...@rwth-aachen.de>
Date: Mon, 25 Oct 2010 12:28:34 +0200
Subject: [PATCH] Fix build on mono.

---
 .../Microsoft.Scripting.Metadata.csproj            |    3 ++-
 Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj b/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj
index 1803c7e..24683ad 100644
--- a/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj
+++ b/Runtime/Microsoft.Scripting.Metadata/Microsoft.Scripting.Metadata.csproj
@@ -93,9 +93,10 @@
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System.Core" />
+    <Reference Include="Mono.Posix" />
   </ItemGroup>
   <ItemGroup>
     <None Include="Microsoft.Scripting.Metadata.ruleset" />
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" Condition=" '$(SilverlightTreeBuild)' != 'true' " />
-</Project>
\ No newline at end of file
+</Project>
diff --git a/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs b/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs
index 494565e..ffa0842 100644
--- a/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs
+++ b/Runtime/Microsoft.Scripting/Hosting/ScriptScope.cs
@@ -226,7 +226,7 @@ namespace Microsoft.Scripting.Hosting {
             public System.Collections.Hashtable Variables {
                 get {
                     System.Collections.Hashtable result = new System.Collections.Hashtable();
-                    foreach (KeyValuePair<string, object> variable in _scope.GetItems()) {
+                    foreach (KeyValuePair<string, dynamic> variable in _scope.GetItems()) {
                         result[variable.Key] = variable.Value;
                     }
                     return result;
-- 
1.7.2.3

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to