[MonoDevelop] Adding References to monodevelop
Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo)
vrrivaro at gmail.com
Mon Oct 16 18:06:01 EDT 2006
2006/10/16, Nigel Jenkins <nigel at nebulus-design.co.uk>:
> Hi All
>
> I'm struggling adding references to monodevelop, in particular the Tao
> libraries. I found that if I added the details from gacutil -l for the
> libs I want to use to the .mdp file that is created when starting a new
> project, then the autocomplete utility while writing code appears to work.
> Doesn't seam like the correct way to do this, and I'm not sure why
> monodevelop doesn't automagically pick them up.
> Couldn't find anything in the docs that helped on this...
>
> any ideas
>
> Nigel
Sure.
To tell MD that those libraries are actually used by your software,
from the Solution pane, right click on the references and then select
"Edit References" on the popup. Simply select or deselect libraries as
you please.
If you don't do these, your program won't even compile. It is not
necessary to write "using Tao;" at the top of the file, it is even a
cause of an error if you do not tell MD you'll be using the library,
and it is not even required. For example, I myself never use those
lines, I use MD autocompletion feature instead (that way I can write
"Gt.Tre" instead of "TreeView" plus I get a view on what I have
available).
Think about it, mono's and MS's compilers work the same way.
Referencing a library is equivalent to using the "-r" command line
switch. How would you like MD to automatically add references to every
librarary in the GAC?
Jesus bless you,
Victor Rafael Rivarola
--
FANÁTICO
"Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
Apocalipsis 3:16
LOCO
"Porque la Palabra de la Cruz es locura para los que se pierden; pero a
los que se salvan, esto es, a nosotros, es poder de Dios."
1 Corintios 1:18
More information about the Monodevelop-list
mailing list