Skip to content

Instantly share code, notes, and snippets.

@thoolihan
Created January 20, 2012 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoolihan/1647663 to your computer and use it in GitHub Desktop.
Save thoolihan/1647663 to your computer and use it in GitHub Desktop.
Sample Rakefile for .Net build
namespace :build do
build_configs = ["Debug", "Release"]
desc "build debug"
task "debug" do
sh build_cmd()
end
desc "build release"
task "release" do
sh build_cmd("Release")
end
end
def build_cmd(build_type="Debug")
"cd Source && msbuild SomeSolution.sln /m:8 /p:Configuration=#{build_type};TargetFrameworkVersion=v4.0"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment