What's the best way to get TFS to output each project to its own directory?

前端 未结 11 1314
我寻月下人不归
我寻月下人不归 2020-11-30 18:58

I\'m putting a large codebase into Team Foundation Server. I would like the build process to create a \"ready to deploy\" build of our projects.

The normal way we\'v

11条回答
  •  被撕碎了的回忆
    2020-11-30 19:31

    By default each project file (*.csproj, *.vbproj, etc.) specifies a default output directory (which is usually bin\Debug, bin\Release, etc.). Team Build actually overrides this so that you're not at the whim of what properties the developer sets in the project file but also so that Team Build can make assumptions about where the outputs are located.

    The easiest way to override this behaviour is to set CustomizableOutDir to true in the SolutionToBuild item group as shown here:

    
      
        CustomizableOutDir=true
      
    
    

    This will make the drop folder structure roughly match what you would get locally if you built the solution.

    This method is definitely preferable to overriding the Core* targets which can cause upgrade issues.

提交回复
热议问题