[MonoDevelop] monodevelop not finding System.Xml
William Huskey
william.huskey at gmail.com
Mon Jun 19 05:11:41 EDT 2006
most likely a simple bug but I have no clue where to start.
if I try to use System.Xml monodevelop tells me
[Task:File=/home/huskeyw/Projects/testxml/testxml/Main.cs, Line=3, Column=1,
Type=Error, Description=The type or namespace name `System.Xml' could not be
found. Are you missing a using directive or an assembly reference?(CS0246)
but If I take the same project and use mcs , the file compiles.. so I know
the .dll are there (plus I did a search and foudn them in the mono folder
where they should be)
mcs version is
Mono C# compiler version 1.1.13.6
monodevelop is 0.10
and I am running Gentoo 2.6.16-gentoo-r9 #4 SMP PREEMPT Wed Jun 14 01:08:18
EDT 2006 i686 Intel(R) Pentium(R) M processor 1.80GHz GNU/Linux
Thanks..
here is the base program... may have other errors but.. untill it finds the
class that is hard for me to tell..
using System;
using System.Xml;
namespace ReadXMLfromFile
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
static void Main(string[] args)
{
XmlTextReader reader = new XmlTextReader ("books.xml");
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element: // The node is an element.
Console.Write("<" + reader.Name);
Console.WriteLine(">");
break;
case XmlNodeType.Text: //Display the text in each
element.
Console.WriteLine (reader.Value);
break;
case XmlNodeType.EndElement: //Display the end of the
element.
Console.Write("</" + reader.Name);
Console.WriteLine(">");
break;
}
}
Console.ReadLine();
}
}
}
--
William S. Huskey
UNIX Systems Engineer
Maritime Systems Solutions Division
SAIC
Tel: 425-267-5643
Email: huskeyw at saic.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060619/97aa9093/attachment.html
More information about the Monodevelop-list
mailing list