<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>色胚子部落 &#187; linux</title>
	<atom:link href="http://blog.colorbase.tw/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.colorbase.tw</link>
	<description>訊息多變的時代裡，需要多學習多思考</description>
	<lastBuildDate>Mon, 15 Aug 2011 03:29:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在Ubuntu上執行.Net開發的程式</title>
		<link>http://blog.colorbase.tw/programming/516</link>
		<comments>http://blog.colorbase.tw/programming/516#comments</comments>
		<pubDate>Fri, 12 Dec 2008 06:15:41 +0000</pubDate>
		<dc:creator>阿育</dc:creator>
				<category><![CDATA[程式設計]]></category>
		<category><![CDATA[.net framework]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[跨平台]]></category>

		<guid isPermaLink="false">http://blog.colorbase.tw/?p=516</guid>
		<description><![CDATA[今天看了 Installing and using mono on Ubuntu 這篇文章之後，測試了一下在Ubuntu中執行.Net的程式
該篇文章對Mono on Ubuntu 講的非常詳細，其中包括如何在Ubuntu中透過mono附帶的編譯器，編譯.Net程式
讓Ubuntu支援.Net WindowForms程式
該文作者是在Ubuntu底下，利用Mono的編譯器進行編譯，因此裝了許多的套件，但如果開發環境是在WIndows底下，而且覺得用命令列編譯太麻煩，其實只要安裝mono、libmono-winforms1.0-cil、libmono-winforms2.0-cil三個套件，就可以直接執行已經在Windows底下編譯好的.Net程式，因為在Windows有更好用的 MS Visual Studio跟SharpDevelop等RAD工具，確實可以省下很多麻煩。
Ubuntu中Mono的安裝指令為：
sudo apt-get install mono
sudo apt-get install libmono-winforms1.0-cil libmono-winforms2.0-cil
又或者使用Ubuntu的Synaptic套件管理程式來安裝更方便(用慣GUI介面的人 XD)
小小測試
我在SharpDevelop中使用C#寫了一些簡單的小東西來做測試，GUI的部份只使用最基本的WindowForms元件，編譯完成後，直接拿到Ubuntu底下，輸入：
mono 執行檔名.exe
該測試程式中使用了以下的.Net套件

System
System.Collections.Generic
System.Drawing
System.Windows.Forms
System.Net
System.Threading
System.Collections
System.Xml
System.IO
System.Text

執行結果，各個功能執行無誤，執行畫面如下：

如同該篇文章所說，Mono並無支援所有的WindowForms元件，後來又測試了使用ToolTip元件，發現無法執行，原因似乎是不支援氣泡提示。
結論
雖然很遺憾Mono仍尚未完全支援.Net所提供的套件，但是以目前支援的程度所能達到的應用，應該可以說數不完了。
相關連結

Installing and using mono on Ubuntu

]]></description>
			<content:encoded><![CDATA[<p>今天看了 <a href="http://www.builderau.com.au/program/dotnet/soa/Gallery-Installing-and-using-mono-on-Ubuntu/0,339028399,339279567,00.htm" target="_blank">Installing and using mono on Ubuntu</a> 這篇文章之後，測試了一下在Ubuntu中執行.Net的程式</p>
<p>該篇文章對Mono on Ubuntu 講的非常詳細，其中包括如何在Ubuntu中透過mono附帶的編譯器，編譯.Net程式<span id="more-516"></span></p>
<p><span style="color: #008080;"><strong>讓Ubuntu支援.Net WindowForms程式</strong></span></p>
<p>該文作者是在Ubuntu底下，利用Mono的編譯器進行編譯，因此裝了許多的套件，但如果開發環境是在WIndows底下，而且覺得用命令列編譯太麻煩，其實只要安裝mono、libmono-winforms1.0-cil、libmono-winforms2.0-cil三個套件，就可以直接執行已經在Windows底下編譯好的.Net程式，因為在Windows有更好用的 MS Visual Studio跟SharpDevelop等RAD工具，確實可以省下很多麻煩。</p>
<p>Ubuntu中Mono的安裝指令為：</p>
<blockquote><p>sudo apt-get install mono<br />
sudo apt-get install libmono-winforms1.0-cil libmono-winforms2.0-cil</p></blockquote>
<p>又或者使用Ubuntu的Synaptic套件管理程式來安裝更方便(用慣GUI介面的人 XD)</p>
<p><span style="color: #008080;"><strong>小小測試</strong></span></p>
<p>我在SharpDevelop中使用C#寫了一些簡單的小東西來做測試，GUI的部份只使用最基本的WindowForms元件，編譯完成後，直接拿到Ubuntu底下，輸入：</p>
<p>mono 執行檔名.exe</p>
<p>該測試程式中使用了以下的.Net套件</p>
<ul>
<li>System</li>
<li>System.Collections.Generic</li>
<li>System.Drawing</li>
<li>System.Windows.Forms</li>
<li>System.Net</li>
<li>System.Threading</li>
<li>System.Collections</li>
<li>System.Xml</li>
<li>System.IO</li>
<li>System.Text</li>
</ul>
<p>執行結果，各個功能執行無誤，執行畫面如下：</p>
<p><a class="thickbox" href="http://blog.colorbase.tw/wp-content/uploads/2008/12/csharponubuntu.png"><img class="alignnone size-medium wp-image-517" title="csharponubuntu" src="http://blog.colorbase.tw/wp-content/uploads/2008/12/csharponubuntu-330x350.png" alt="" width="330" height="350" /></a></p>
<p>如同該篇文章所說，Mono並無支援所有的WindowForms元件，後來又測試了使用ToolTip元件，發現無法執行，原因似乎是不支援氣泡提示。</p>
<p><span style="color: #008080;"><strong>結論</strong></span></p>
<p>雖然很遺憾Mono仍尚未完全支援.Net所提供的套件，但是以目前支援的程度所能達到的應用，應該可以說數不完了。</p>
<p><strong><span style="color: #008080;">相關連結</span></strong></p>
<ul>
<li><a href="http://www.builderau.com.au/program/dotnet/soa/Gallery-Installing-and-using-mono-on-Ubuntu/0,339028399,339279567,00.htm" target="_blank">Installing and using mono on Ubuntu</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.colorbase.tw/programming/516/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

