$ (TeamBuildConstants) está en blanco para las compilaciones de TFS
Tengo un evento posterior a la construcción como este:
if NOT "$ (TeamBuildConstants)" == "_ TEAM_BUILD_" "$ (SolutionDir) Tools \ NuGet.exe" pack "$ (ProjectDir) MyAssembly.nuspec" -BasePath "$ (ProjectDir) $ (OutDir)."
if "$ (TeamBuildConstants)" == "_ TEAM_BUILD_" "$ (SolutionDir) Tools \ NuGet.exe" paquete "$ (ProjectDir) MyAssembly.nuspec" -BasePath "$ (OutDir)."
Cuando construyo en Visual Studio $ (TeamBuildConstants) está en blanco (como debería ser).
Pero cuando construyo en mi servidor TFS 2010, $ (TeamBuildConstants) todavía está en blanco. ¿Qué debo hacer para saber cuándo tengo una TFS Build ejecutándose?