Sample code Download Address:
Wp7_aawolf_ironrubywp7.rar
Http://files.cnblogs.com/aawolf/WP7_aawolf_IronRubyWP7.rar
This blog is written entirely because I read this article on MSDN:
Http://msdn.microsoft.com/en-us/magazine/ff960707.aspx
The Windows Phone 7 development tool does not support dynamic languages, so IronRuby support for Windows Phone 7 is particularly important. Just read this article, but also made a joke, read the code, a sentence do not know, thought is the language to change. NET, how is the change so big? Looking carefully, it turned out to be ruby, not Python ^_^, the little boa was behind this time. I used to write automated test scripts in Python, and I didn't touch Ruby, so I looked at Ruby as Python.
Does not support dynamic language, has been the pain of Windows Mobile programming, this time finally got a kick. Finally can change the logic of the program dynamically, light This gives us infinite imagination space. Is F # on Windows phone fast, too? ^_^
Back to the point, this time I was completely divert, just will try some of the key points to write out, so that everyone less detours. For more information, you can refer to the blog:http://ironshay.com/of Shay Friedman
First, we want to download the IronRuby for Windows phone version (. NET 3.5):
http://ironruby.codeplex.com/releases/view/43540#downloadid=133276</p>
Then, create a project for the Silverlight for Windows Phone 7 in Visual Studio 2010, the project called "IronRubyWP7" and then the "Add Reference" option on the "Project" menu, In the pop-up dialog box, select the "Browse" tab, we can find the extracted IronRuby directory, add the DLL file in \silverlight\bin to the project: