On Tue, 2007-02-20 at 19:47 -0500, Jason Perkins wrote: > I am trying to make the switch from MS .NET to Linux and Mono. I have > created a simple project and a Makefile, all good. But I can't figure > out how to add a reference to the NUnit assemblies. I thought adding > `-r:nunit.framework.dll` would do it, but I get the "CS0006: Cannot > find assembly" error.
A clean way of doing it is: mcs -pkg:mono-nunit ....... That (assuming that nunit has been properly installed) uses pkg-config to do the job. Of course, if you don't know what pkg-config is, "man pkg-config"... In practice, this works if you have a "mono-nunit.pc" file in your $PKG_CONFIG_PATH environment variable, which must be in sync with your Mono installation (I mean, the proper dll must be there!). Since you are learning, see also this page: http://www.mono-project.com/Guidelines:Application_Deployment It is not the answer to your problem, but it is related, and should be mandatory reading... Ciao, Massi _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
