[Mono-list] How to build against NUnit?

Jason Perkins starkos at gmail.com
Tue Feb 20 19:47:28 EST 2007


Apologies if this has been answered before -- I was able to find other
people asking in the archives, but no one answering.

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.

The nunit.framework assembly is in the GAC. I realize that you can't
build against the GAC, but how should I set up my makefile so it will
build against the right NUnit if I distribute my sources? Do I have to
include a copy of NUnit in the source tree? Shouldn't this assembly be
stored with all the other Mono assemblies so they can be referenced
normally?

Help much appreciated,

Jason


More information about the Mono-list mailing list