完成.NET輕便用酒&單音?
單音 是微軟的.NET框架的打開來源版本。 它實施大多後端框架特點,但不幸地,秋天平在它的相當少許面孔,當試圖顯示是的用戶界面時-什麼桌面apps是所有關於。
酒 在其他手,更加重要地(大部分)微軟的Win32圖書館Linux口岸-窗口發展圖書館的核心附庸,和, win32接口元素。 與酒,您在Linux能跑許多傳統C++ win32 executables,以某些局限。
單音最大的絆腳石是使用P/Invoke叫當地非被處理的win32 dlls -的GUI和.NET節目單音是一個純淨的.NET環境,并且不可能處理他們。 但從上面描述,那是 確切地 什麼酒擅長在… 如此我們不可以用酒+單音使關於運行的任何.NET節目在Linux新鮮在.NET編譯器外面?
不幸地,答復是沒有。 支持,當單音項目是第一開始,使用酒被考慮的單音開發小組實施是實際100%當地C++未處理的win32代碼在.NET封皮)的System.Windows.Forms namespace .NET框架(。 但他們在決定做出了正確的選擇 沒有 採取容易的方法并且去那條路線,留給單音項目的正直原封和改為集中於真實的十字架平臺用戶界面圖書館(GTK#現在是選擇UI圖書館為十字架平臺.NET應用)。
但直到GTK#圖書館成為一個更加可實行的選擇或單音「口岸」 SWF變得更加完全(如下所示),不應該如此物使成為可能? 它一定是偉大的鍵入
$酒win32_NET_app.exe --mono=/usr/lib/mono/
或可能(根據什麼app做綜合化) :
$單音win32_NET_app.exe --wine=/usr/lib/wine/
并且有酒手動斷路.NET Win32應用對單音,并且攔截P/Invoke電話對Win32 DLLs,正在進行中替換他們用它自己的被端起的Win32圖書館。 那是偉大的,是?
不幸地,我們不是人民負責在酒或單音和這樣實施將採取某個時候和努力開始-,雖然它是我們的看法,如果這樣事做它 必需 是修改和不單音的酒-為了保存單音項目的真實的十字架平臺本質和保留它從是Win32圖書館的法律泥沼。
在,單音隊在「口岸」排序工作為將讓幾乎書面的所有節目的System.Windows.Forms之時 并且設計 for Windows run on Linux without a problem. Instead of porting the actual SWF controls to Mono, the Mono team is working on a “compatibility layer” of sorts that will render the controls on-the-fly, making it look more “natural” no matter what platform it’s running on.
In the mean time, we highly recommend developers consider using the (technically-inferior, compatibility-superior) GTK# UI library instead of SWF for your .NET projects (on and off of Windows); and end-users can install the latest dev copy of Mono to gain access to the SWF “ported” library to make those Windows apps work!
Written by Computer Guru. Read more great feeds at is source WEBSITE
no comments.
Read more articles on Coding and Alternatives and Mono and WINE and .NET Framework and c# and Windows and Programming and Linux and software.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article














