List Info

Thread: Newbie question.




Newbie question.
user name
2008-03-18 18:20:04
Trying to build the following code in monodevelop:

using System;

namespace XMLTest
{
  ;  class MainClass
  ;  {
        public static void Main(string[] args)
        {
            new System.Xml.XmlDocument();
            Console.WriteLine("Hello XML!");
        }
    }
}

I receive the following build error: 'The type or namespace name `Xml' does not exist in the namespace `System9;. Are you missing an assembly reference?'

However, using 'mcs', the code compiles and executes. Is the MONO_PATH different in monodevelop, or something? How can I check?
Re: Newbie question.
user name
2008-03-18 19:28:40
You probably need to add System.Xml to your project assembly
references.

Right-click on References in the Solution browser and choose
"Edit
References...".  Then make sure System.Xml is
selected.

On Tue, Mar 18, 2008 at 7:20 PM, Robert Sherwood
<robert.sherwoodgmail.com> wrote:
> Trying to build the following code in monodevelop:
>
> using System;
>
> namespace XMLTest
> {
>     class MainClass
>     {
>         public static void Main(string[] args)
>         {
>             new System.Xml.XmlDocument();
>              Console.WriteLine("Hello
XML!");
>         }
>     }
> }
>
> I receive the following build error: 'The type or
namespace name `Xml' does
> not exist in the namespace `System'. Are you missing an
assembly reference?'
>
> However, using 'mcs', the code compiles and executes.
Is the MONO_PATH
> different in monodevelop, or something? How can I
check?
>
> _______________________________________________
>  Monodevelop-list mailing list
>  Monodevelop-listlists.ximian.com
>  http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
>
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

[1-2]

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