我正在尝试从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
功能