[MonoDevelop] Newbie question.

Zach Lute zach.lute at gmail.com
Tue Mar 18 20:28:40 EDT 2008


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.sherwood at gmail.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-list at lists.ximian.com
>  http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>


More information about the Monodevelop-list mailing list