Asked by:

Process 'msbuild.exe' exited with code '1'

Question

I am building a project with TFS through MSBuild Task which is executing with the build Agent. Though Project is getting build with Zero error and then Task
is Failing after completing successfully build with One single line Error message "Process 'msbuild.exe' exited with code '1'.".

And my same project is getting build with the command line(all included parameters which is passing while TFS

build) on the same build machine.

As we can see there is an issue with Powershell script execution which is autogenerated to run build machine tasks.