c# – 使用Mono为Linux创建可执行文件?

我想开发一个C#工具,只要通过PHP调用它就可以在Apache Web服务器上运行(例如使用exec-command).因为我是新手,所以如果你可以帮助我会很棒:

1)如果我使用Mono和“msc”命令在我的Windows系统上编译C#代码,这是否会创建一个也可以在Linux中执行的文件,即在Apache Web服务器上? (它绝对可以在Windows中执行)如果没有,我如何使用Mono for Windows创建Linux可执行文件

2)尝试通过PHP在Apache Web服务器上调用应用程序时是否需要考虑?许可权?

解决方法:

1:关于the Mono FAQ的第一个问题:

Can Mono run binaries produced by Visual Studio?

Yes, Mono can run binaries produced by Visual Studio, there is no need to recompile.

Use our Mono Migration Analysis tool to check if everything that your application uses has been implemented in Mono or if there are special considerations to keep in mind.

The Mono API today is somewhere in between .NET 2.0 and .NET 4.0 see our Roadmap for details about what is implemented.

2:我不能专门针对PHP发言,但我相信你必须使用单声道可执行文件运行这个过程(例如mono /path/to/exe/Sometool.exe)

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...