TFS 2010 Build Automation and post-build event

后端 未结 3 861
南方客
南方客 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 08:52

    My approach is to guard the pre- or post-build code with this

    IF "$(BuildingInsideVisualStudio)"=="true" ( …your code here… )

    That variable is automatically defined by Visual Studio and you do not need to change the build definition.

提交回复
热议问题