<< back to blog

Getting Started with Rake on .NET

.net ~ ruby ~ rake

04 Nov, 2008

Many people have discovered that Rake is a lean, mean, build assisting machine. Even better, some .NET developers enjoying it too. It's even been praised by some of the industry's best.

Getting started with Rake and .NET is actually childs play.

Great, you've now got everything you need installed on your machine and are ready to start using Rake. All that's left to do now is create a simple Rakefile and run it.

  • Open any .NET solution you've been working on recently in Visual Studio.
  • Add a solution item called Rakefile.rb (type is text file)
  • Paste in the following and save

Some rake code:

task :default => :welcome

task :welcome do
    sh "echo Rake is up and running. Hurrah!"
  • Open a command prompt (Start->Run->Cmd)
  • Type: cd c:\Code\MySolutionFolder (obviously put your own path in)
  • Type: rake
  • Done!

If you see this, you've got a working installation of Rake.

echo Rake is up and running. Hurrah!
Rake is up and running. Hurrah!

If you want to now know how to get the most from Rake with .NET, go and see how other .NET developers are using Rake.

You may also like...
.NET Gem Fun
Running FubuMVC on Mono (OSX)
Really Easy Way To Partition an ASP.NET MVC With An Admin Area
Automating .NET development (and NHibernate) with IronRuby + Rake
Get a Rails-Stylee Interactive Shell For Your NHibernate Backed Domain Model
In Memory SQLite Testing with NHibernate
NHibernate Trick
OSX MonoDevelop MVC?
NHibernate: Calling Update Unnecessarily
.NET Config for Multiple Developers

kick it on DotNetKicks.com
blog comments powered by Disqus