I would like to add some scripting support to the Silverlight 4 application, which I'm working on. I have the latest release releases of both IronRibe and IronPathon on my machine with Vindu Studio 2010. I saw some samples of using ScriptEngine class with both Ireland and Iron Python. I also got to make sure my code works, to work in a small Windows form. However, I can not add references to expected assemblies / DLLs on my Silverlight 4 app.
Here is my script code:
ScriptEngine engine = Ruby.CreateEngine (); Engine. Runtime. Globals .set variable ("menpage", this); String Code = "MainPage.txtTitle.Text = \" Hello from IronRuby! \ ""; Engine.Execute (code);
And, the statements used by me here are used:
the use of irrevocable; Use of Microsoft Scripting.Hosting;
When I try to add references to the following assemblies / DLLs from IronRuby 1.0 release, Visual Studio 2010 did not let me add them and why does not provide an exception message as a result I I'm unable to compile the solution.
IronRuby.dll IronRuby.Libraries.dll IronRuby.Libraries.YAML.dll Microsoft.Dynamic.dll Microsoft.Scripting.Debugging.dll Microsoft Scripting.dll
< P> I think Visual Studio 2010 does not allow me to add assemblies / DLLs, because they are compiled for .NET and are not Silverlight. Do anyone know if I will get the Silverlight 4 version of those assemblies or what am I doing wrongly? Any help would be appreciated. Thanks!
Silverlight version for both IronRuby 1.0 and IronPython 1.0 is hidden in IronRuby 1.0 for .NET . Downloadable from 2.0 SP1 (ZIP archive). In the Zip Look for Silverlight \ bin.
IronRuby 1.1 Silverlight release is also available. IronPython 1.1 for Silverlight though can not be found anywhere. DLR is not getting love with Microsoft, this is a little bit documented, it is very difficult to find binaries, the future of Ironyub and Ironpeeth does not look bright ...
Comments
Post a Comment