[Ironruby-core] Usage errors with IR SVN 153
Curt Hagenlocher
curth at microsoft.com
Fri Oct 3 11:13:13 EDT 2008
You define extension methods in your hosting app, right? We're still working out the details of our second attempt to fix this problem. In the short term, the workaround is to define your own private copy of ExtensionAttribute in any hosting project that defines extension methods. That requires the following 4 lines of code:
namespace System.Runtime.CompilerServices {
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
sealed class ExtensionAttribute : Attribute { }
}
-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Brotherus
Sent: Friday, October 03, 2008 3:58 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Usage errors with IR SVN 153
Reverting back to IR SVN 153, I was getting it compiled.
However, when switching to use the the SVN 153 compiled binaries
(upgrading from SVN 141) in my IronRuby-embedding app, I get following
compilation errors:
------ Build started: Project: gui, Configuration: Debug Any CPU ------
...
warning CS1685: The predefined type
'System.Runtime.CompilerServices.ExtensionAttribute' is defined in
multiple assemblies in the global alias; using definition from
'c:\programs\IronRuby\trunk\build\debug\avn153\Microsoft.Scripting.Core.
dll'
...
warning CS1685: The predefined type
'System.Linq.Expressions.ElementInit' is defined in multiple assemblies
in the global alias; using definition from
'c:\programs\IronRuby\trunk\build\debug\avn153\Microsoft.Scripting.Core.
dll'
error CS0656: Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'
error CS0656: Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'
error CS0656: Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'
error CS0656: Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'
Robert Brotherus
Software architect
Napa Ltd
Tammasaarenkatu 3, Helsinki FI-00180
P.O.Box 470, Helsinki FI-00181
Tel. +358 9 22 813 1
Direct. +358 9 22 813 611
GSM +358 45 11 456 02
Fax. +358 9 22 813 800
Email: Robert.Brotherus at napa.fi
www.napa.fi
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
More information about the Ironruby-core
mailing list