Team Build 2010: Copy each solution into separate directory inside drop location folder?

11 ביולי 2010


Most of my customers want their Drop Location folders organized in sub-folders for each solution instead of getting all DLLs\EXEs in one massy folder.


Instead of customizing csproj as  and suggest, you can update the template of your build and change the output directory to the one you want.


First, open the XAML template and drill down to the compilation activity:

MSBuild Task

 You have Run-MSBuild-for-Project activity. In the Properties window check out the OutDir parameter – That's the one you want to change!

By default, this parameter has outputDirectory variable which directs to Binaries folder of the build in the build machine.

i.e I created a build name TestBuild.

The default OutDir value is D:\Builds\4\Project2010\TestBuild\Binaries

Now, for creating a new folder for each solution, update OutDir parameter with this code:

System.IO.Path.Combine(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(localProject))


The Build Will automatically copy OutDir content to the DropLocation folder. Have Fun


Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



  1. Pradeep Y29 ביוני 2011 ב 12:04

    This approch is not woriking for ASPNET Web Projects.

  2. Roy27 באוגוסט 2011 ב 13:25

    Pradeep Y,
    web sites don't have project files (csproj\vbproj) and I guess that why it's not working… try converting your web sites to web applications (that have project files) and it'll work.

  3. Morten6 בספטמבר 2011 ב 14:20

    Does this affect unit testing on CI builds?

  4. PerT21 ביוני 2012 ב 18:34

    Great! Solved things for me!

  5. TanyaK1 ביולי 2012 ב 11:36

    Is there anyway to put each compiled project to separate folder?

  6. TanyaK1 ביולי 2012 ב 11:44

    Is it possible to separate the binaries according to projects?

  7. Echols24 ביולי 2012 ב 13:27

    Hi, always i used to check weblog posts here early in the morning, for the reason that
    i like to learn more and more.

  8. Folse26 ביולי 2012 ב 9:27

    Very helpful field, thanks a lot for ad. “It has long been an axiom of mine the small things are infinitely that the most important.
    by Conan Doyle.

  9. Cromwell28 ביולי 2012 ב 2:12

    Do you people have a myspace fan page I looked for for one on twitter conversely could not get a hold of it, Id
    really along the lines of to become a fan!

  10. Lujan29 ביולי 2012 ב 2:56

    Thanks a lot for this kind of facts I had been exploring all Yahoo to search for it!

  11. Moll31 ביולי 2012 ב 21:59

    Thanks for the kind data. I realy appreciate it.

    keep it up.

  12. Close5 באוגוסט 2012 ב 0:17

    It's demanding to search for knowledgeable people during this topic, then again you appear to be what happens you are talking about! Thanks

  13. Maples6 באוגוסט 2012 ב 6:59

    when it comes to beautiful smile and beautiful teeth, Rachel McAdams have it all

  14. Winfrey12 באוגוסט 2012 ב 21:25

    Great website. A lot of web pages such as this cover subjects that just arent covered by magazines.

  15. Roper13 באוגוסט 2012 ב 0:56

    MrNewbieVideo New News With Five New Apps, Zoho Is Now
    That the Largest Developer On That the Google Apps Mar

  16. Blodgett13 באוגוסט 2012 ב 3:13

    I am curious to get out what blog platform you are by using Im experiencing some little
    security problems with my latest blog and I would
    just like to find something more safe. Do you have any other recommendations

  17. Searcy13 באוגוסט 2012 ב 7:08

    First-class day, Can I export your post picture and apply that on
    my personal blogging site

  18. Espinal13 באוגוסט 2012 ב 10:35

    we love watching Dancing with the stars, that the
    actresses and actors that joins it have been nice

  19. Madsen13 באוגוסט 2012 ב 10:49

    divorce is of course one of the worst thing someone to could experience in spite of this you could discover over it

  20. Bedard13 באוגוסט 2012 ב 11:39

    Jaime cette prise de vue toutefois jen ai avant cela lu bien dautres de meilleures qualifications

  21. Labelle13 באוגוסט 2012 ב 14:21

    I appreciate your time and effort allocated to this article,
    bad i had to spend this long to get it then again as they say top quality is demanding to find.
    Continue the fine work.

  22. Cohen20 באוגוסט 2012 ב 15:04

    when you are not eating much fiber, then you will always determine indigestion.
    so eat a lot of dietary fibers

  23. Fowlkes24 באוגוסט 2012 ב 1:16

    Hey, you used to write fine, in spite of this that
    the last few posts are kinda boring I miss
    your super writings. Past a couple of posts are just a minor out of track!

    come on!

  24. Slade28 באוגוסט 2012 ב 6:57

    Hey mate, thanks for sharing however this page doesnt format correctly
    in Chrome its is overlapping.

  25. Bragg4 בספטמבר 2012 ב 7:13

    very fine post, i certainly enjoy this site, go on it

  26. Lockhart7 בספטמבר 2012 ב 1:08

    Once I came over to this post I can simply look at part of it, is this my net internet browser or the internet website Should I restart

  27. Deboer7 בספטמבר 2012 ב 11:58

    As far because me being a member here, I didnt even be acquainted with that I was a member here.
    When the article was published I received a username and password, so that I could participate in Comments,
    That would explain me stumbuling upon this post. But were certainly all members in the world of ideas.

  28. Moya14 בספטמבר 2012 ב 2:55

    Thank you for yet an alternative great informative article, Im a loyal visitor to this blog
    and I cant stress enough just how much valuable tips Ive learned
    out of reading your content. I really appreciate all that the
    tough work you put into this great site.

  29. Crist14 בספטמבר 2012 ב 2:57

    I am curious to discover out what blog platform you
    have been by employing Im experiencing some small security problems with my latest blog and I would just like to obtain
    something more safe. Do you have any recommendations

  30. Wasson14 בספטמבר 2012 ב 3:04

    I got what you intend, saved to fav, very decent website .

  31. Redmon14 בספטמבר 2012 ב 3:11

    wow you hit it on the nose will submit to twitter

  32. Jenson14 בספטמבר 2012 ב 9:39

    I am typically to blogging and that i really appreciate your
    articles. This great article has really peaks my interest.
    My goal is to bookmark your web blog and keep checking for brand new details.

  33. Reedy14 בספטמבר 2012 ב 10:14

    Hi! I just wanted to ask whenever you ever have any problems with hackers My last blog
    wordpress was hacked and I ended up losing months of hard work due to
    no backup. Do you have any methods to protect against hackers

  34. Boles14 בספטמבר 2012 ב 10:22

    When I originally commented I clicked the Notify me when new
    comments are added checkbox now if a comment is added I discover
    four emails sticking with that the same comment. Is there
    on the other hand you possibly can eliminate me out of that service

  35. Troutman14 בספטמבר 2012 ב 10:28

    I meant to submit you that small word just to say thank
    you when again for those terrific techniques you have contributed in this
    case. This is very remarkably generous with you in supplying unreservedly all that
    numerous people could probably have marketed for an electronic book to generate some dollar on their very own, chiefly contemplating you to could probably have tried out it
    in case you deemed important. People assistance also served
    to grow to be uncomplicated approach to be specific that numerous people have
    the exact same fervor seriously just like my extremely personal to discover out line of attack
    additional in regard to this matter. I recognize there
    have been quite a ton of additional satisfying sessions forward for these who scan as
    a result of your website publish.

  36. Loveless14 בספטמבר 2012 ב 10:32

    Im now not sure where youre getting your information, then again first-class topic.
    I needs to spend some time finding out more or
    working out more. Thank you for fantastic information
    I used to be on the lookout for this info for
    my mission.

  37. Akins14 בספטמבר 2012 ב 10:33

    I dont generally comment however I gotta tell thanks for the post on this
    perfect one .

  38. Hutcherson14 בספטמבר 2012 ב 11:27

    This would be the right blog for everyone who is wants to get out about this topic.
    You already identify a great deal its practically tricky
    to argue on hand not that I really would wantHaHa. You actually put that the
    latest spin on the topic thats been written about
    for a couple of years. First-class stuff, just good!

  39. Giles14 בספטמבר 2012 ב 11:37

    Ive been exploring for a little bit for any other high quality articles or weblog posts on this kind of area .
    Exploring in Yahoo I ultimately stumbled upon this web site.
    Studying this info So i am satisfied to convey that
    Ive an incredibly first-class uncanny feeling I discovered just what I
    needed. I so much no doubt will make sure to dont
    put from your mind this website and provide it a look a
    relentless basis.

  40. Butler15 בספטמבר 2012 ב 0:01

    I would actually love to guest post on your blog.

  41. Kaufman15 בספטמבר 2012 ב 1:05

    Well done! I thank you your contribution to this matter.
    It has been useful. my blog exercise to reduce tummy

  42. Tavares15 בספטמבר 2012 ב 2:11

    I have to say i am very impressed with the line of attack you efficiently
    site and your posts have been so informative. You have
    really have managed to catch the attention of lots of it seems,
    keep it up!

  43. Peters15 בספטמבר 2012 ב 21:35

    This can be just that the simplest and best advice I have ever come across about this topic.
    Thank you for this very useful blog post of yours.
    Additionally, I enjoy writing articles which has a personal tone incorporated.
    I feel it makes your reader feel more important and
    inclined to believe me more. Plus it sounds more real and never coming out of a robot.
    I enjoy making my visitors feel important and special.
    I want to let them have the best tips on how to cope with important issues
    such as this.

  44. Whitson16 בספטמבר 2012 ב 17:23

    Hello! I’ve been following your blog for a while now and finally got that the
    courage to go ahead and give out you a shout out out of Kingwood Texas!

    Just wanted to mention keep up that the excellent

  45. Cameron16 בספטמבר 2012 ב 17:29

    I just discovered the website through Bing search engine.
    You truly made a meaningful purpose. in the long
    term I really want to study different posts from
    your blog.

  46. Zimmerman13 באוקטובר 2012 ב 11:07

    I found your article very thought provoking. That the method it was written made me look
    at things from another angle and think about what I originaly thought,
    why not visit us .I will definately be back again.

  47. Irving30 באוקטובר 2012 ב 13:08

    I was also reading a topic along the lines of this one
    out of an additional site.:-.”,

  48. Gold22 באפריל 2013 ב 3:56

    My family always say that I am killing my time here at web, however
    I know I am getting familiarity every day by reading thes pleasant articles.

  49. hwqime@gmail.com31 באוגוסט 2013 ב 3:52

    You are a very smart individual!