如何使用Mono编译目录中的所有文件? [英] How do I compile all files in a directory with mono?

查看:72
本文介绍了如何使用Mono编译目录中的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用包含多个文件(全部位于1个目录中)的mono编译C#应用程序.我需要什么命令?

I want to compile a C# app with mono that consists of multiple files (all in 1 directory). What is the command that I need?

推荐答案

使用:

gmcs -out:yourapp.exe -pkg:dotnet *.cs

gmcs -out:yourapp.exe -pkg:dotnet35 *.cs

这些命令将引用.NET中默认引用的所有程序集.

Those commands will reference all the assemblies referenced by default in .NET.

这篇关于如何使用Mono编译目录中的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆