[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:20:52 EST 2010
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
More information about the Mono-list
mailing list