I am using TeamCity for Continuous Integration. One of my projects in a solution is having a pre build event. It is working fine when I build the project locally. However In TeamCity, the build failed with error code 3. Pre build event is for building Google Protocol buffer's proto file and creating C++ header and C++ source files.
Following is the pre build event:
protoc --proto_path=<SourceDir> --cpp_out=<destinationDir> <SourceDir\protofileName1> <SourceDir\Protofilename2>
Why I am getting this error in TeamCity but not locally ? Any ideas on how to fix this error?