[Pkg-mono-devel] Mono Beta 1 Preview Packages

Tomasz Rybak bogomips@post.pl
Tue, 11 May 2004 02:28:36 +0200


W li¶cie z pon, 10-05-2004, godz. 19:23, Tomasz Rybak pisze: 
> I cannot compile simple program:
[cut]
> $ mcs db.cs -r System.Data -r Npgsql
> error CS0006: Cannot find assembly `System.Data'
> Log:
>  
> error CS0006: Cannot find assembly `Npgsql'
> Log:
>  
> Compilation failed: 2 error(s), 0 warningstion failed: 6 error(s), 0
> warnings
> $ 
> 
> I tried adding -lib, setting MONO_PATH, but it didn't work.
> When I give full path (/usr/lib/mono/gac/...) to each dll, it works.

I've upgraded mcs to -pre2.
Now I can compile such program by
$ export MONO_PATH=/usr/lib/mono/1.0; mcs db.cs
or
$ mcs /lib:/usr/lib/mono/1.0 db.cs /r:System.Data ....


> But I can import assemblies to GAC - both user and system GAC.
> Again -  must give full path to my dll to mcs.

I was able compile programs like in screenshoot:
http://www.jacksonh.net/jackson/blog/archive/2004/Mar-25.html

Unfortunately user's GAC doesn't work - but it's upstream:
 Jackson Harper have written in his blog it's broken 
(but fixed in CVS).

-- 
Tomasz Rybak <bogomips@post.pl>