System.xml namespace issue

I appologise if this is an obvious question but I haven't been able to find an answer to it and was wondering if was an issue with visual studio 2005
If I create a new project and attempt to include the xml namespace by
Imports System.Xml
I get an error stating that the namespace can't be found. If I add a reference to System.xml in the project resources tab then it is fine. The reference books I have plus the tutorials in gotdotnet don't make any mention of having to add the reference in this way. I was curious
if this is the standard method for including libraries which are not part of the standard windows forms set.
Thanks
John.
[678 byte] By [johnewing] at [2008-3-5]
# 1
Yes, adding references this way is standard procedure. I just think it's odd that System.Xml wasn't included by default.
DanielRieck at 2007-9-9 > top of Msdn Tech,.NET Development,XML and the .NET Framework...
# 2
Thanks,
This initially confused me because code that worked perfectly in one application didn't in a second. I found that if you add a dataset control to a form a reference to System.xml is automatically created hence the discrepancy.
Thanks for clearing that up.
J
johnewing at 2007-9-9 > top of Msdn Tech,.NET Development,XML and the .NET Framework...

.NET Development

Site Classified