I'm following Scott Guthrie's 8 part DiggSample. The problem I'm having is that VS2008 isn't able to detect System.XML.Linq. This means I can't use XDocument et al.
I'm quite sure I created the project with a target of .NET Framework 3.5. Unfortunately I haven't found a way to verify this (it doesn't seem to be reflected in the Properties for the application).
Here's what I have installed: .NET Framework 3.5, VS 2008, Silverlight 2 SDK Beta2, Silverlight 2 Beta2 Tools for VS 2008
Note that I haven't installed .NET Framework 3.5 SP1 Beta nor VS 2008 SP1 Beta.
Check you Silverlight project references to see if you have System.xml.linq in the references. If not, click add Reference and select this dll. I don't think this dll is included by default.
Sally Xu
Software Engineer
Aprimo, Inc
Please remember to mark the replies as answers if they answered your question
Hi, I have added a reference to the System.Xml.linq dll and also can see it in the references folder of my Silverlight app. however when I try to use it [using System.Xml.linq] it says are you missing an assembly reference! I am stumped! Please help
pjr
0 Points
2 Posts
Can't reference System.XML.Linq from DiggSample
Aug 09, 2008 09:25 PM | LINK
I'm following Scott Guthrie's 8 part DiggSample. The problem I'm having is that VS2008 isn't able to detect System.XML.Linq. This means I can't use XDocument et al.
I'm quite sure I created the project with a target of .NET Framework 3.5. Unfortunately I haven't found a way to verify this (it doesn't seem to be reflected in the Properties for the application).
Here's what I have installed: .NET Framework 3.5, VS 2008, Silverlight 2 SDK Beta2, Silverlight 2 Beta2 Tools for VS 2008
Note that I haven't installed .NET Framework 3.5 SP1 Beta nor VS 2008 SP1 Beta.
Any suggestions on how to fix my problem?
Thanks-
system.xml.linq
sladapter
All-Star
43607 Points
7907 Posts
Re: Can't reference System.XML.Linq from DiggSample
Aug 09, 2008 10:34 PM | LINK
Check you Silverlight project references to see if you have System.xml.linq in the references. If not, click add Reference and select this dll. I don't think this dll is included by default.
Software Engineer
Aprimo, Inc
Please remember to mark the replies as answers if they answered your question
pjr
0 Points
2 Posts
Re: Re: Can't reference System.XML.Linq from DiggSample
Aug 09, 2008 10:40 PM | LINK
Doh! That worked - thanks.
jayesh.sidhwani
Member
15 Points
45 Posts
Re: Re: Can't reference System.XML.Linq from DiggSample
May 18, 2010 09:08 AM | LINK
sladapter
All-Star
43607 Points
7907 Posts
Re: Re: Can't reference System.XML.Linq from DiggSample
May 19, 2010 05:46 PM | LINK
using System.Xml.Linq;
not
using System.Xml.linq;
C# is case sensitive.
Software Engineer
Aprimo, Inc
Please remember to mark the replies as answers if they answered your question