Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从命令行使用Mono进行编译?_Mono_Monodevelop - Fatal编程技术网

如何从命令行使用Mono进行编译?

如何从命令行使用Mono进行编译?,mono,monodevelop,Mono,Monodevelop,我安装了monodevelop来尝试一下。 我能够编译hello worlds并使用monodevelop的GUI运行它,但我也希望从命令行中实现等效功能 有人能告诉我编译.cs文件的命令行是什么吗 提前感谢是的,msbuild在Linux上可用一段时间。使用以下内容构建您的项目: msbuild helloworld.csproj 执行时: mono helloworld.exe使用csc替代msc:它在Linux上可用吗?Windows、macOS、Linux项目文件(.csproj)是一

我安装了monodevelop来尝试一下。 我能够编译hello worlds并使用monodevelop的GUI运行它,但我也希望从命令行中实现等效功能

有人能告诉我编译.cs文件的命令行是什么吗


提前感谢

是的,msbuild在Linux上可用一段时间。使用以下内容构建您的项目:
msbuild helloworld.csproj

执行时:
mono helloworld.exe

使用
csc
替代
msc
:它在Linux上可用吗?Windows、macOS、Linux项目文件(.csproj)是一个MSBuild脚本,所以只需学习并使用MSBuild命令行即可。Linux上是否可用“MSBuild”?