System.Xml.Linq

Feb 25, 2009 at 3:44 AM
Edited Feb 25, 2009 at 3:51 AM
Hi,
I'm trying to use LINQ for XML with IronPython and SDL SDK 0.4.0, but can't get it to work. The following code works under IronPython outside of Silverlight.
import clr
clr.AddReference('System.Xml.Linq')
import System.Xml.Linq as xml
This exception occurs in line 2:
IOError: Could not add reference to assembly System.Xml.Linq

What am I doing wrong?

Regards,
Marvin
Coordinator
Feb 25, 2009 at 5:53 PM
System.Xml.Linq is part of the Silverlight SDK, so you'll have to
install that and copy the assembly from c:\program files\microsoft sdks
\silverlight\v2.0\client\libraries to your application so it gets
included into the xap Chiron generates. Then you can add a reference
to it.