在Mono for Windows中编译的程序是否可以在Mono for Linux中运行?

Yar*_*oze -2 c# linux windows mono

在Mono for Windows中编译的程序是否可以在Linux(带Mono)中运行?

Ode*_*ded 7

简短回答:

也许.

更长的回答:

如果您使用的不是Windows具体的命名空间(如WMI命名空间)和Windows具体的概念(比如具有\嵌入在文件路径,而不是使用Path.DirectorySeparatorChar),事情应该只是罚款.

要检查您的应用程序是否可以运行,请使用Mono Migration Analyzer.