1

I have a very limited knowledge for Linux/Ubuntu platform. There are some requirements coming though for me to deploy a version of our desktop application on either of the above platforms.

With the context, I have the following queries in my mind:

  1. Could the same code can run on windows using the MONO/MONO IDE and I can compile the output to the OS specific?
  2. OR assuming there are certain changes I must make to run them on different OS, what could be the best way to deploy it on Linux/Ubuntu?
  3. OR Is it possible to keep the same code under windows development, however can be deployed on Linux/Unix environment?
4

1 回答 1

0

SQL 不能在 Unix 上工作,所以你需要先转换它。

  1. 是的,这就是要走的路。

  2. 您需要执行第 1 步来确定是否需要特定于操作系统的更改。

  3. 假设 Mono 支持程序集所需的所有内容,您不必做任何事情 - 它应该已经是二进制兼容的。这是 IL 的要点之一 :)

如果你确实发现了 Mono 不支持的一些东西,建议你有一个 Unix 分支的代码。

于 2013-04-18T06:23:44.573 回答