将c#代码转换为C ++本机代码或x86处理器 [英] Converting c# code to C++ native code or for x86 Processor

查看:160
本文介绍了将c#代码转换为C ++本机代码或x86处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的C#控制台应用程序能够在没有.Net框架工作的情况下运行,例如将其转换为本机c ++代码或其他方法,以便在没有.Net框架工作的情况下运行。

解决方案

如果没有 CLR ,您的 C#应用程序无法运行。当然,将代码转换为 C ++ 控制台应用程序就可以解决这个问题。


你不能在实践中,因为C#是设计时考虑到了.NET框架 - 如果没有它,它就无法做任何事情! Console类是.NET的一部分,你尝试创建的每个变量都是一个.NET对象。



我知道没有转换器可以重新编码C#到native(非CLR)C ++


我同意其他答案。 转换最好由能够复制c#程序功能的合格程序员完成。如果.net程序使用.net中的许多功能,这可能是不可能的。



如果它是一个小程序,你可以免费试用。我不知道结果。

http://www.tangiblesoftwaresolutions.com/Product_Details /CSharp_to_CPlusPlus_Converter_Details.html [ ^ ]

How can i make my C# console application able to run without .Net frame work e.g convert it to native c++ code or to some other method so that it will run without .Net frame work.

解决方案

Your C# application cannot run without the CLR. Of course, converting the code to a C++ console application would make the trick.


You can't in practice, because C# was designed with the .NET framework in mind - and without it it can't do anything! The Console class is part of .NET, every variable you try to create is a .NET Object.

And I know of no converter than can re-code C# to native (Non-CLR) C++


I agree with the other answers. "Converting" is best done by a competent programmer who can replicate the functionality of the c# program. This may not be possible if the .net program uses a lot of the features available in .net.

If it is a small program you can try this for free. I've no idea of the results.
http://www.tangiblesoftwaresolutions.com/Product_Details/CSharp_to_CPlusPlus_Converter_Details.html[^]


这篇关于将c#代码转换为C ++本机代码或x86处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆