TFS 2010 Build Automation and post-build event

后端 未结 3 873
南方客
南方客 2020-12-28 08:16

In the project I\'ve inherited, the original developer used a number of post-build events in his Visual Studio projects to copy around DLL\'s and stuff when building inside

3条回答
  •  没有蜡笔的小新
    2020-12-28 09:06

    I use a similar approach to do this. I add the following to each project's post-build steps:

    if '$(TeamBuild)'=='True' exit 0
    

    Then when configuring the Build Definition I simply add:

    /p:TeamBuild=True
    

    ...to the MSBuild Arguments.

    This gives me the flexibility to keep all the configuration in the projects and the build definition.

提交回复
热议问题