Friday, October 4, 2013

Override the TFS Team Build OutDir property in .NET 4.5

Fighting against TFS Build default OutDir for Binaries like

  • <drop>/Binaries (TFS 2010)
  • <drop>/bin (TFS 2012, TFS 2013)

Instead you want to have for each project a separate folder like this:

  • <drop>/<projectname>/*.dll

Thanks to .Net 4.5 there is an easy solution to solve this

Pass the following MSBuild-Argument to your BuildProcessTemplate:

/p:GenerateProjectSpecificOutputFolder=true

Source: http://blog.stangroome.com/2012/05/10/override-the-tfs-team-build-outdir-property-net-4-5/

2 comments:

  1. Hi Daniel,

    Nicely done - that looks like the best solution I've seen for this problem! Always love it when there's a simple and elegant solution.

    Regards,
    Jeff Page

    ReplyDelete
    Replies
    1. In TFS 2013 this problem should be fixed
      http://blog.danielthecoder.net/2013/12/override-tfs-team-build-outdir-part-2.html

      Delete