Created
January 20, 2012 14:47
-
-
Save thoolihan/1647663 to your computer and use it in GitHub Desktop.
Sample Rakefile for .Net build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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