List Info

Thread: problem compiling with monodevelop




problem compiling with monodevelop
user name
2007-11-19 04:45:55
i'm starting to use monodevelop and c#.

i was testing xml tools,
and with this code:

// project created on 18-11-2007 at 23:17
using System.Xml;
using System;

namespace xmlteste
{
	
	class MainClass
	{
		public static void Main(string[] args)
		{
			//Console.WriteLine("Hello World!");
			string url="http://ws.audioscrobbler.com/1.0/user/o_ponto/pr
ofile.xml";
			using (XmlReader reader = XmlReader.Create(url))
			{
				
			        while (reader.Read())
			        {
			            switch (reader.NodeType)
			            {
			                case XmlNodeType.Element:
			                   
Console.Write("<>", reader.Name);
			                    break;
			            }
			        }
			}
		}
		
	}
}

when i compile using gmcs all works well.

but when using monodevelop with runtime 2.0,
gives me this:
Type=Error, Priority=Normal, Description=The type or
namespace name
`System.Xml' could not be found. Are you missing a using
directive or
an assembly reference?(CS0246)

how can i solve this?
_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

problem compiling with monodevelop
user name
2007-11-22 06:11:26
i'm starting to use monodevelop and c#.

i was testing xml tools,
and with this code:

// project created on 18-11-2007 at 23:17
using System.Xml;
using System;

namespace xmlteste
{

        class MainClass
        {
                public static void Main(string[] args)
                {
                        //Console.WriteLine("Hello
World!");
                        string
url="http://ws.audioscrobbler.com/1.0/user/o_ponto/pr
ofile.xml";
                        using (XmlReader reader =
XmlReader.Create(url))
                        {

                                while (reader.Read())
                                {
                                    switch
(reader.NodeType)
                                    {
                                        case
XmlNodeType.Element:
                                           
Console.Write("<>", reader.Name);
                                            break;
                                    }
                                }
                        }
                }

        }
}

when i compile using gmcs all works well.

but when using monodevelop with runtime 2.0,
gives me this:
Type=Error, Priority=Normal, Description=The type or
namespace name
`System.Xml' could not be found. Are you missing a using
directive or
an assembly reference?(CS0246)

how can i solve this?
_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

Re: problem compiling with monodevelop
country flaguser name
Germany
2007-11-24 10:34:47
Am Donnerstag, 22. November 2007 13:11 schrieb ponto:
> Type=Error, Priority=Normal, Description=The type or
namespace name
> `System.Xml' could not be found. Are you missing a
using directive or
> an assembly reference?(CS0246)
>
> how can i solve this?
> 
I suppose you haven't added System.Xml to the References
list in the left 
sidebar yet, otherwise MD won't find the namespace and the
corresponding 
assemblies.

Regards
Jacek Rużyczka

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )