问题描述
关于我之前有关 Windows上的单点的问题 ,例如,我针对Windows mono运行时开发了一个应用程序,以便它也可以在Linux,OSX等上运行.为了使其更加复杂,我使用了GTK#,因此不必处理WinForms.那么,是否有一种简便的方法将Windows Mono运行时与我的Windows版本的应用程序捆绑在一起,以便可以一次全部安装?或者,这没有意义吗?一旦针对Windows Mono运行时进行开发,它是否仍可以针对MS .NET运行时运行良好? (我想我仍然需要安装GTK#).
Regarding my earlier question about the Point of Mono on Windows, let's say that I develop an app against the windows mono runtime so that it will also run on Linux, OSX, etc.. and to make it more complicated, I use GTK# so that I don't have to deal with WinForms. Is there then an easy way to bundle the Windows Mono runtimes with my Windows version of the application so that it can all be installed at once? Or, is there no point to this? Once I develop against the Windows Mono runtime, would it still run fine against the MS .NET runtime? (I assume I would still need GTK# installed though).
推荐答案
简短的回答是是".
编程时应注意的事项
- 不使用平台API
- 不要硬编码目录&文件名分隔符,即不对文件路径进行硬编码,而是使用适当的类来获取路径分隔符,然后连接名称.
- 请记住,* nx上的文件名区分大小写,而Windows上的文件名不区分大小写.进行编程时,请不要将与log.txt和Log.txt相同的文件引用到同一文件,而应将其保持在较小的大小.
除此之外,如果您在* nx系统上创建了GTK#应用程序,那么如果您安装了GTK#程序集,就可以在Windows上运行它,反之亦然.
Other then that, if you created GTK# application on *nx system, you will be able to run it on Windows if you installed GTK# assembly, and vice-versa.
我自己完成了此操作,它的工作与预期的一样.我在Windows上找不到特定的汇编DLL版本的GTK#时遇到了问题,这花了我几个小时.
I did this myself, and it worked like expected. I had a problem to find specific assembly dll version of GTK# on Windows and that took me few hours.
这篇关于将Windows Mono运行时与应用程序捆绑在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!