can't pick up dll's or namespaces from .dll or .cs files

View: New views
2 Messages — Rating Filter:   Alert me  

can't pick up dll's or namespaces from .dll or .cs files

by Elise Langham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am running Mono from the command line using gmcs and can compile and run simple programs using the .NET system references but cannot pick up  my own dlls or namespaces in .cs files with the
using myNamespace; directive.
or
using myDll; directive

These files are sitting in the same directory as my main file so what do i need to pick up dll's or namespaces ?

It always gives the error : The type or namespace cannot be found. Are you missing a using directive or an assembly reference ?

Is there a command line option when compiling or something i need to do to explicitly add a reference?

yours hopefully,

 Elise


Re: can't pick up dll's or namespaces from .dll or .cs files

by Jb Evain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

On 6/30/09, Elise Langham <i-ellang@...> wrote:
 >  Is there a command line option when compiling or something i need to do to
>  explicitly add a reference?

Yes, you need to specify the references like:

gmcs -r:MyAssembly.dll code.cs

--
Jb Evain  <jb@...>
_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list