[Mono-list] NPGSQL compiling errors

Brandon Perry brandon at thresholdofthought.com
Thu Sep 13 16:23:07 EDT 2007


make sure it is in the GAC (gacutil -l | grep Npgsql). You might also
need to do -r:Npgsql.

On Thu, 2007-09-13 at 15:08 -0500, B R wrote:
> I'm trying to use Mono to compile a C# program I'm tinkering with. I want to 
> test it on a Linux environment (works fine on Windows). It just connects to 
> a POSTGRESQL backend and returns minor information (I'm still learning 
> NPGSQL).  It uses these references:
> 
> using System;
> using System.Data;
> using Npgsql;
> 
> Which compiles fine, if I use the MS.Net compiler. However, MCS gives me 
> errors. First it complained about System.Data, which I was able to fix using 
> the "-r:System.Data" argument upon compile time.
> 
> Now, it complains that it can't find Npgsql. I'm wondering if the DLL should 
> be located somewhere specific, or if I should be compiling with an 
> additional argument. Can someone shed some light?
> 
> Thanks
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list