That search was added by @mwrock in a4ccd09b. Quoting: "Team City cant find nuget.exe on path after initial download." I guess there were problems with refreshing of PATH if Chocolatey was installed immediately before invoking build.proj.