If you experience any problems running Visual C++ build on a build agent, you can try to workaround these issues with the following steps, sequentially:

Any of these steps may solve your issue. Please feel free to leave feedback of you experience.

See also:

Administrator's Guide: .NET Testing Frameworks Support | NUnit support