便携式C#的最佳实践 [英] Best practices for portable C#

查看:133
本文介绍了便携式C#的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待写于Linux / Windows / MAC /任何其他平台一些C#代码,并正在寻找可移植代码的最佳做法。

I am looking to write some C# code for linux/windows/mac/any other platform, and am looking for best practices for portable code.

项目<一个HREF =htt​​p://go-mono.org>单有一些伟大的移植资源

什么是可移植的C#?

推荐答案

最佳实践我实际使用WinForms和感觉不错。这是对接丑陋,但它的工作。

I've actually used winforms and it was fine. It was BUTT UGLY, but it worked.

显然,不使用的P / Invoke,或任何win32的东西,如注册表。另外要注意任何第三方的DLL的。例如,我们用它实际上包含在它的本机代码,我们不得不换出,如果我们想在OSX / Linux上运行第三方的SQLite DLL。

Obviously, don't use P/Invoke, or any win32 stuff like the registry. Also be aware of any third party DLL's. For example, we use a third party SQLite dll which actually contains native code in it which we have to swap out if we want to run on OSX/linux.

这篇关于便携式C#的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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