[Mono-list] Having problems finding assemblies
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Wed Nov 19 22:05:53 EST 2008
On Wed, 2008-11-19 at 15:20 -0800, Sandy Armstrong wrote:
> UnstoppableDrew wrote:
> > HI, I'm brand new to mono, and am having the following problem.
> > I installed the mono 2.0.1 windows release, and am trying to convert
> > our existing .net builds to mono. I'm having problems compiling with
> > finding various stock assemblies. For example 'using System' works,
> > but 'using System.Data' results in the error:
> > error CS0234: The type or namespace name `Data' does not exist in the
> > namespace `System'. Are you missing an assembly reference?
> What command are you using to compile your code? You probably are
> forgetting to add references with -r:System.Data, for example.
If you are lazy and don't want to add the assemblies needed one by one,
you can do something like:
gmcs `pkg-config --libs dotnet` otherparameters yoursourceshere
More information about the Mono-list