How to differentiate TFS Builds and manual builds using macros in Post build event
问题 In TFS post build script of a .proj file I want to find whether the project build is happening through TFS triggered build or manually triggered build. Can someone suggest me how to do this using macros in Post Build event. 回答1: Short answer: you can make use of the IsDesktopBuild MSBUILD property within your csproj file to differentiate between TFS and local build. Long Answer: Developer or Team Build? To differentiate the build environments we have to implement a mechanism that detects in