While preparing for a talk I am to give about the new C# 4.0 dynamic feature and dynamic languages in general I ran into several issues that I would like to document here, maybe they will be helpful for you as well.
I am using the Visual Studio 2010 VPC which was handed over for every PDC attendee. But don’t feel bad if you don’t have it, you may download it now (7.2GB download).
The VPC contains many walkthroughs you can try on, such as interoperability of IronPhython and C#, and Silverlight.
In order to do the those walkthroughs and also run the demos Anders and Jim did on their PDC sessions you need a few stuff that don’t come with the VPC.
- You must have an IronPhyton runtime which is not included with the VPC. You can download it from here.
- When you do try to install the IronPhyton runtime, the installer stops at "Please wait while the installer finishes determining your disk space requirements" phase. Following my past Vista UAC “instincts” I run it through command line with “msiexec /i IronPython.msi” and it did work. (Thanks Vista!).
- While trying to reproduce both Anders Hejlsberg and Jim Hugunin examples from PDC 2008, you will notice that the DynamicObject object that they are using id missing. It just didn’t make it to the VPC. Luckily you don’t have to re-implement it, Curt Hagenlocher had provided us a copy of it.
Link to Curt’s post
Link to Kevin Hazzard’s post.