How can I get TFS 2010 to build each project to a separate directory?

后端 未结 9 914
忘掉有多难
忘掉有多难 2020-12-23 12:37

In our project, we\'d like to have our TFS build put each project into its own folder under the drop folder, instead of dropping all of the files into one flat structure. To

9条回答
  •  無奈伤痛
    2020-12-23 12:57

    Here's another very simple solution that requires no modification to source files or project files. When setting up your build definition's Process -> Projects to Build, instead of specifying your .sln file in the projects to build, add each project (.csproj or .vbproj). Now inside the "Run MSBuild for Project" step of your workflow, change the OutDir property to the following:

    OutputDirectory + "\" + System.IO.Path.GetFileNameWithoutExtension(serverBuildProjectItem)
    

提交回复
热议问题