$(TeamBuildConstants) is blank for TFS builds
问题 I have a post build event like this: if NOT "$(TeamBuildConstants)"=="_TEAM_BUILD_" "$(SolutionDir)Tools\NuGet.exe" pack "$(ProjectDir)MyAssembly.nuspec" -BasePath "$(ProjectDir)$(OutDir)." if "$(TeamBuildConstants)"=="_TEAM_BUILD_" "$(SolutionDir)Tools\NuGet.exe" pack "$(ProjectDir)MyAssembly.nuspec" -BasePath "$(OutDir)." When I build on in Visual Studio $(TeamBuildConstants) is blank (as it should be). But when I build on my TFS 2010 Server, $(TeamBuildConstants) is still blank. What do I