CodeRunner 运行C# 报错 mono

报错信息:
In order to run C# code, you need to have Mono installed. You can get it at http://mono-project.com

进入命令行输入mono确认自己是否安装,没有安装到http://mono-project.com下载安装.
1. 按command + 加逗号 快捷键
2.languages 点击 Edit Script 弹出compile.sh
3.编辑
compname=`echo “$CR_FILENAME” | sed ‘s/\(.*\)\..*/\1/’`.exe
#gmcs “$CR_FILENAME” “${@:1}” 因为系统没有gmcs命令导致上面的报错信息改成下方保存即可
mcs “$CR_FILENAME” “${@:1}”
status=$?
if [ $status -eq 0 ]
then
echo $compname
exit 0
elif [ $status -eq 127 ]
then
echo -e “\nIn order to run C# code, you need to have Mono installed. You can get it at http://mono-project.com”
fi
exit $status