[Mono-list] error CS0246: The type or namespace name `XMLSchema' could not be found. Are you missing a using directive or an assembly reference?

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Jan 15 09:33:47 EST 2010


Please discard my last message. I was trying to compile a 3rd party
lib and did not realize the class was provided in a subdirectory.

Sorry for the noise

On Fri, Jan 15, 2010 at 3:20 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> Hi there,
>
>  I am getting confused on how to use XMLSchema.openAttrs. Let's
> consider the following code:
>
> $ cat t.cs
> using System.Xml.Schema;
>
> public class t
> {
>  static int Main()
>  {
>    XMLSchema.openAttrs childElement;
>    return 0;
>  }
> }
>
>
> I am trying to compile it this way:
>
> $ mono-csc t.cs -r:System.Xml
> t.cs(8,5): error CS0246: The type or namespace name `XMLSchema' could
> not be found. Are you missing a using directive or an assembly
> reference?
>
> This is on a debian stable machine. With
>
> $ mono-csc --version
> Mono C# compiler version 2.4.2.3
>
> and
>
> $ dpkg -L libmono-system2.0-cil | grep -i xml
> /usr/lib/mono/gac/System.Xml.Linq
> /usr/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089
> /usr/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
> /usr/lib/mono/gac/System.Xml
> /usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089
> /usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
> /usr/lib/mono/2.0/System.Xml.dll
> /usr/lib/mono/2.0/System.Xml.Linq.dll
>
>
> Thanks for hints !
> --
> Mathieu
>



-- 
Mathieu


More information about the Mono-list mailing list