2

我正在尝试从 C# Windows Phone 应用程序调用 IronRuby 代码,但是当我尝试构建项目时,我遇到了几个错误。

所有的教程都过时了,所以我正在尽力而为。我安装了 Windows Phone SDK,然后安装了 IronRuby,然后为 Windows Phone 创建了一个 C# 应用程序(没有 IronRuby 模板)。

Visual Studio 不知道在哪里可以找到 IronRuby DLL,所以我手动浏览并添加了它们。所有教程都说要使用 Silverlight,但不再有适用于 Windows Phone Visual Studio 2012 的 Silverlight 模板,而且 Silverlight DLL 会生成自己的虚假错误。

代码

https://github.com/mcandre/ios7crypt/tree/master/WindowsPhone

痕迹

Warning 1   Reference to type 'System.Dynamic.IDynamicMetaObjectProvider' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Core.dll', but it could not be found  c:\Program Files (x86)\IronRuby 1.1\Silverlight\bin\Microsoft.Scripting.dll IOS7Crypt
Warning 2   Reference to type 'System.Dynamic.IDynamicMetaObjectProvider' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Core.dll', but it could not be found  c:\Program Files (x86)\IronRuby 1.1\Silverlight\bin\Microsoft.Scripting.dll IOS7Crypt
Warning 3   Reference to type 'System.Dynamic.IDynamicMetaObjectProvider' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Core.dll', but it could not be found  c:\Program Files (x86)\IronRuby 1.1\Silverlight\bin\Microsoft.Scripting.dll IOS7Crypt
Warning 4   Reference to type 'System.Dynamic.IDynamicMetaObjectProvider' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Core.dll', but it could not be found  c:\Program Files (x86)\IronRuby 1.1\Silverlight\bin\Microsoft.Scripting.dll IOS7Crypt
Warning 5   Reference to type 'System.Dynamic.IDynamicMetaObjectProvider' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\System.Core.dll', but it could not be found  c:\Program Files (x86)\IronRuby 1.1\Silverlight\bin\Microsoft.Scripting.dll IOS7Crypt
Error   6   Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported  C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\CSC    IOS7Crypt
Error   7   Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported  C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\CSC    IOS7Crypt
Error   8   Cannot define a class or member that utilizes 'dynamic' because the compiler required type 'System.Runtime.CompilerServices.DynamicAttribute' cannot be found. Are you missing a reference? C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\MainPage.xaml.cs   22  25  IOS7Crypt
Error   9   Cannot implicitly convert type 'Microsoft.Scripting.Hosting.ScriptRuntime' to 'Microsoft.Scripting.Hosting.ScriptEngine'    C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\MainPage.xaml.cs   27  22  IOS7Crypt
Error   10  One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?    C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\MainPage.xaml.cs   33  27  IOS7Crypt
Error   11  One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?    C:\Users\andrew\Desktop\src\ios7crypt\WindowsPhone\IOS7Crypt\MainPage.xaml.cs   39  31  IOS7Crypt

眼镜

  • 铁红宝石 1.1
  • 视窗电话 Visual Studio 2012
  • Windows 8 专业版 x64
  • MacBook Pro 2009 年中
4

0 回答 0