【问题标题】:Will a program compiled in Mono for Windows run in Mono for Linux out of the box?在 Mono for Windows 中编译的程序能否在 Mono for Linux 中开箱即用?
【发布时间】:2012-03-07 12:03:30
【问题描述】:

使用 Mono for Windows 编译的程序能否在 Linux(使用 Mono)中开箱即用地运行?

【问题讨论】:

    标签: c# windows linux mono


    【解决方案1】:

    简答:

    也许吧。

    更长的答案:

    如果您没有使用 Windows 特定的命名空间(例如 WMI 命名空间)和特定于 Windows 的概念(例如 not 在文件路径中嵌入了\ 而不是使用Path.DirectorySeparatorChar),那么事情应该工作得很好。

    要检查您的应用程序是否可以正常工作,请使用Mono Migration Analyzer

    【讨论】:

    • “视情况而定”。这类极其广泛的问题的经典答案。 =)
    猜你喜欢
    • 2015-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多