From 6356d2cc4e87fc0a5954394633a2a1f6d59e0843 Mon Sep 17 00:00:00 2001 From: jweber Date: Fri, 6 May 2016 14:30:45 -0700 Subject: [PATCH] Added clean task for removing build artifacts --- rakefile.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rakefile.rb b/rakefile.rb index c3e070b..fa070f9 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -34,6 +34,13 @@ task :all => [:net45] do end + build :clean do |b| + b.prop 'configuration', $config + b.prop 'framework', 'NET45' + b.target = ['clean'] + b.file = "source/#{PROJECT_NAME}.sln" + end + build :net45 => ["nuget:restore", "version"] do |b| b.prop 'configuration', $config b.prop 'framework', 'NET45' @@ -56,6 +63,11 @@ tests.add_parameter "/xml=#{File.join(ARTIFACTS_PATH, "nunit-test-results.xml")}" end +desc 'Cleans build artifacts' +task :clean => 'build:clean' do + rm_rf ARTIFACTS_PATH +end + desc 'Builds release package' task :package => 'build:all' do include FileUtils