How can one determine if a csproj is being run on a TFS build agent?
We use TFS 2010. There are a couple of projects with deployment steps which must know whether they are running on a dev machine or on the TFS build agent. Right now they check whether the build is from within Visual Studio assuming that only devs compile from VS. Alas, it means I cannot compile from the command line! So, my question is how an msbuild script can determine if it is being run by the TFS build agent? You have a few options: '$(BuildingInsideVisualStudio)' != '' '$(TeamBuildConstants)' != '' (supported in team Build 2008) '$(IsDesktopBuild)' == 'false' You can check either one to