<?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>The Bark Blog &#187; C#</title>
	<atom:link href="http://bark.metacasa.net/category/geekery/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://bark.metacasa.net</link>
	<description>Random musings from the earthy depths.</description>
	<lastBuildDate>Tue, 02 Mar 2010 18:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>C# on Mac OS X</title>
		<link>http://bark.metacasa.net/2007/05/22/c-on-mac-os-x/</link>
		<comments>http://bark.metacasa.net/2007/05/22/c-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 23 May 2007 01:16:40 +0000</pubDate>
		<dc:creator>Umberdog</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bark.metacasa.net/2007/05/22/c-on-mac-os-x/</guid>
		<description><![CDATA[Turns out it&#8217;s a snap to start developing with C# on Mac OS X.  The hard work is already done for you.  First, download and install the latest Mono framework binary for OS X.

This blog from Brian Ray gives a nice Hello World example.  The gist is:


Compile with &#8220;/Library/Frameworks/Mono.framework/Commands/mcs hello.cs&#8221;
Run with &#8220;/Library/Frameworks/Mono.framework/Commands/mono [...]]]></description>
			<content:encoded><![CDATA[<p>Turns out it&#8217;s a snap to start developing with C# on Mac OS X.  The hard work is already done for you.  First, <a href="http://www.mono-project.com/Downloads">download</a> and install the <a href="ftp://www.go-mono.com/archive/1.2.4/macos-10-universal/4/MonoFramework-1.2.4_4.macos10.novell.universal.dmg">latest Mono framework binary for OS X</a>.</p>

<p><a href="http://kazavoo.com/blog/index.php?/archives/23-C-Mono-on-OSX,-first-look.html">This blog from Brian Ray</a> gives a nice Hello World example.  The gist is:</p>

<ol>
<li>Compile with &#8220;/Library/Frameworks/Mono.framework/Commands/mcs hello.cs&#8221;</li>
<li>Run with &#8220;/Library/Frameworks/Mono.framework/Commands/mono hello.exe&#8221;</li>
</ol>

<p>TextMate fans can have it even easier.  This close-to-anonymous <a href="http://www.sunburstweb.net/textmate/CSharp_v0.03.tmbundle.zip">C# TextMate bundle</a> gives us the basics, including syntax coloring and some handy tab-completions.  Install it by unzipping it and opening the bundle file.  TextMate will install it for you.</p>

<p>To add a Run command, open the TextMate Bundle Editor, select the crisp new C# bundle, and add a New Command to it.</p>

<pre><code>EXE_FILE=`echo $TM_FILEPATH | sed -e 's/\..*$//'`.exe
/Library/Frameworks/Mono.framework/Commands/mcs $TM_FILEPATH
/Library/Frameworks/Mono.framework/Commands/mono $EXE_FILE
</code></pre>

<p><img width="518" height="305" alt="picture-2.png" id="image26" src="http://bark.metacasa.net/wp-content/uploads/2007/05/picture-2.png" />
Then, write your code and hit Cmd-R to compile and run the current source file.  Snap!</p>
]]></content:encoded>
			<wfw:commentRss>http://bark.metacasa.net/2007/05/22/c-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
