微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐