[IronPython] Embedding IronPython in Silverlight

Dody Gunawinata empirebuilder at gmail.com
Thu Dec 10 12:18:43 PST 2009


OK I found out what's wrong.

I am using Visual Studio 2010 Beta 2 targeting Silverlight 3. This
application already has references to IP 2.0 assemblies. So what I did was
remove the old references and then re-add IronPython 2.6 RC 3.

Now although VS informed me that the referred assemblies points to 2.6, it
still uses IP 2.0 assemblies for Intellisense and Object Browser. A right
click reload to Reflector from the VS also loaded IP 2.0 assembly.

I had to delete the ClientBin folder so VS stopped referring to the old IP
assemblies. Once this is done, finally all the "missing" types appear (the
old one only had DynamicApplication and 4 other classes).

Sorry for the wrong alarm :)

Dody G.

On Thu, Dec 10, 2009 at 7:31 PM, Jimmy Schementi <
Jimmy.Schementi at microsoft.com> wrote:

>  Dody,
>
> That blog post should work against 2.6 RC3; the method your looking for
> is a static
> method: Microsoft.Scripting.Silverlight.DynamicEngine.CreateRuntime. Take a
> look at the example again, I use a using statement to get rid of the
> Microsoft.Scripting part.
>
> ~js
>
>  ------------------------------
> *From:* users-bounces at lists.ironpython.com [
> users-bounces at lists.ironpython.com] on behalf of Dody Gunawinata [
> empirebuilder at gmail.com]
> *Sent:* Thursday, December 10, 2009 1:41 AM
> *To:* Discussion of IronPython
> *Subject:* [IronPython] Embedding IronPython in Silverlight
>
>   What are the necessarily libraries for embedding IronPython in
> Silverlight for the 2.6 releases?
>
>  My scenario is simply running snippets of Python codes inside oceans of
> C# based Silverlight code. This Silverlight application has already an
> embedded IronPython based on older binaries in 2.0 version.
>
>  I tried yesterday to upgrade this to 2.6 RC 3 and failed. I tried using
> the technique on Jimmy's recent blog post,
> http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html,
> I couldn't find the bloody Silverlight.DynamicEngine.CreateRuntime()
> method anywhere even after linking to Microsoft.Scripting.Silverlight.dll
>
>  I linked to the following assemblies located under Silverlight\bin under
> IronPython 2.6 RC 3 zip.
> - IronPython.dll
> - IronPython.MOdules.dll
> - Microsoft.Dynamic.dll
> - Microsoft.Scripting.Core.dll
> - Microsoft.Scripting.dll
> - Microsoft.Scripting.Silverlight.dll
>
> --
> nomadlife.org
>
>


-- 
nomadlife.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20091210/587fa0ad/attachment.htm>


More information about the Users mailing list