This entry describes how to build the Mono 4.0 profile for NAnt. This is needed if you want to target the Mono 4.0 profile with NAnt, as the Mono framework does ship with a rather old version of NAnt.
Getting the source
Patching the Makefile
First, you need to patch the
Makefile so the right compiler is picked-up. Open the
Makefile file with your favorite text editor and replace
Open a Terminal window and go the folder where you have checked out the source code. Type the following command:
make TARGET=mono-4.0 clean all
Once NAnt is build for the Mono 4.0 profile, you can replace the built-in NAnt that comes with the Mono framework, by copying the output result.
sudo mv /Library/Frameworks/Mono.framework/Versions/Current/share/NAnt /Library/Frameworks/Mono.framework/Versions/Current/share/NAnt.old sudo cp -R ./build/mono-4.0.unix/nant-0.91-debug /Library/Frameworks/Mono.framework/Versions/Current/share/NAnt