我应该如何转置 .NET 程序? [英] How should I transpose a .NET program?

查看:23
本文介绍了我应该如何转置 .NET 程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是通过修改现有代码将 Microsoft .NET 程序转换为独立程序,还是仅使用现有代码作为参考?通过独立,我的意思是不必在机器上安装 .NET 框架(或任何其他框架).最好,我更喜欢花费最少时间的选项,即使它有点问题.

Would it be better to transpose a Microsoft .NET program to standalone by modifying the existing code, or to just use the existing code as a reference? By standalone, I mean that the .NET framework (nor any other) would not have to be installed on the machine. Preferably, I'd prefer the option which would take the least time, even if it is slightly buggy.

推荐答案

这取决于 .NET 在现有代码中的使用范围.一些托管 C++ 看起来与本机 C++ 非常相似——在这种情况下,最好用等效的本机 C++ 库替换 .NET 部分.另一方面,一些托管 C++ 在整个代码中使用了很多 .NET 主义,例如 ^ 引用,在这种情况下,可能需要重新编写.

It depends how extensive the use of .NET is in the existing code. Some managed C++ looks very similar to native C++ -- in this case you'll be better off replacing the .NET parts with equivalent native C++ libraries. On the other hand, some managed C++ uses a lot of .NET-isms such as ^ references throughout the code, in which case a re-write is probably in order.

这篇关于我应该如何转置 .NET 程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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