是否单.NET支持和编译C ++ / CLI? [英] Does Mono .NET support and compile C++ / CLI?
问题描述
单是否.NET支持和编译C ++ / CLI?
Does Mono .NET support and compile C++ / CLI?
如果没有,你知道,如果他们有支持它的任何计划?
If not, do you know if they have any plans of supporting it?
推荐答案
我们没有一个编译器C ++ / CLI,这将是一个非常巨大的工程为一个非常小的用户群。此外还应考虑到C ++ / CLI规范本身是有缺陷的,不可移植,所以能够编译它也没有多大帮助的一般情况。
We don't have a compiler for C++/CLI, it would be a very large undertaking for a very small userbase. Consider also that the C++/CLI spec is inherently flawed and non-portable, so being able to compile it wouldn't help much in the general case.
您可以编译使用MS .NET编译器和单声道与这些限制运行:
You can compile using the MS .NET compiler and run in mono with these restrictions:
-
与单在任何系统上运行,如果在C ++ / CLI应用程序是纯粹的管理(但,为什么用这样一个丑陋的语言,而不是C#?)
run with mono on any system if the C++/CLI app is pure managed (but then, why use such an ugly language and not C#?)
与单在其他情况下的窗口(C ++ / CLI应用程序是一般不可移植,包括本地code,所以他们只能在Windows上运行,而且无趣单声道的主要目标运行这是运行管理程序在Linux上)
run with mono on windows in the other cases (C++/CLI apps are in general non-portable and include native code, so they can run only on windows and are uninteresting for the major objective of mono which is to run managed programs on Linux)
请注意,MS本身最终会降C ++ / CLI,所以不要投入太多就可以了,并切换到C#。
Note that MS itself will eventually drop C++/CLI, so don't invest too much on it and switch to C#.
这篇关于是否单.NET支持和编译C ++ / CLI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!