visual-studiotfstfsbuildxamlbuildbuild-templates

Visual Studio 2017 -TFS - Organise folder structure output


I'd like to organise my file in the same structure that it is built:

Currently I dealt with the output path of each project (..\bin\NameProject) to have this:

But in each project (so in project1 and project2), I find all the DLLs/executables from all projects. I want that the output of project1 receives only DLLs/executable from project1, the same thing for project2.

Then, I think to fix that with build process template (https://msdn.microsoft.com/en-us/library/dd647551(v=vs.120).aspx), so I have this structure:

But I don't know how this step could help me. Maybe it's not the good way. Do you have an idea?

Thank you for helping me!

EDIT

What I want as ouput exactly for instance:

Solution1
  project1
     including all output (DLLs) from project 1
  project2
     including all output (DLLs) from project 2

Solution

  • Actually, you don't need to customize your build process template. You could add this MSBuild parameter in your build definition and have a try. For more detail, please refer to this blog.

     /p:GenerateProjectSpecificOutputFolder=True 
    

    And the Output Location still set to SingleFolder. enter image description here

    Here is another case which have the similar question with you, you could also refer to those replies in this link. What's the best way to get TFS to output each project to its own directory?