CSC = "mcs" SRC = FileList[ '**/*.cs'] BUILD_DIR = "build" FULL_NAME = "jungle-sharp.exe" TARGET = 'exe' REFS = ["jungle-sharp.dll"] task :compile do sh "#{CSC} -debug -out:#{FULL_NAME} -target:#{TARGET} -lib:#{BUILD_DIR}-r:#{REFS.join(',')} #{SRC}" end