title: How do I make a Rake Task run after all other tasks? (i.e. a Rake AfterBuild task)
body: <p>I'm new to Rake and using it to build .net projects.  What I'm interested in is having a Summary task that prints out a summary of what has been done.  I want this task to always be called, no matter what tasks rake was invoked with.</p>
  
  <p>Is there an easy way to accomplish this?</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>Update on the question, responding to <a href="https://stackoverflow.com/questions/1689504/how-do-i-make-a-rake-task-run-after-all-other-tasks-i-e-a-rake-afterbuild-tas/1722979#1722979">Patrick's answer</a> what I want is the after task to run once after all other tasks, so the output I want is:</p>
  
  <pre><code>task :test1 do 
    puts 'test1'
  end
  
  task :test2 do 
    puts 'test2'
  end
  
  Rake::Task.tasks.each do |t|
      &lt;Insert rake magic here&gt;
  #  t.enhance do 
  #    puts 'after'
  #  end
  end
  
  $ rake test1
  test1
  after
  
  $rake test2
  test2
  after
  
  $rake test1 test2  
  test1
  test2
  after
  </code></pre>
  
  <p>and if </p>
  
  <pre><code>task :test3 =&gt;[:test1, :test2]
     puts 'test3'
  end
  
      $rake test3
  test1
  test2
  test3
  after
  </code></pre>
  
  <p>Even though the bounty is gone, any further help much appreciated.  (Sadily I don't think that I can offer another bounty.)</p>