[Mono-devel-list] Using mono CVS

Mike McKay crazy at vdomck.org
Tue Nov 9 11:44:48 EST 2004


christophe barbe wrote:
> ~$ /usr/bin/gacutil | grep Mono.Xml.Ext
> ~$ /usr/local/bin/gacutil -l | grep Mono.Xml.Ext
> Mono.Xml.Ext, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> 
> Version=1.0.5000.0 seems to indicate that I am using NET_1_1 according
> to mcs/class/Mono.Xml.Ext/Assembly/AssemblyInfo.cs.
> 
> Then when I want to compile a cs file with "using Mono.Xml.Ext;" I get:
> ~$ /usr/local/bin/mcs test.cs
> test.cs(6) error CS0246: The namespace `Mono.Xml.Ext' can not be found (missing assembly reference?)
> Compilation failed: 1 error(s), 0 warnings

> Any ideas?

You have to explicitly reference most dlls with mcs.

Try using the -reference option, i.e. mcs -r:Mono.Xml.Ext test.cs

Also use

mcs --help

for more info and options

Mike



More information about the Mono-devel-list mailing list