Try to see if TeamCity can handle the msbuild script not mentioning fancybox or nggrid.