none
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1. RRS feed

  • Question

  • Whenever I try to build my VC++ code on VS2010.It is giving me

    "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1."

    this error.Can you please help me in solving this.Actually we are moving from VS2005 to VS2010.

    Thank you

    Monday, October 29, 2012 8:56 AM

All replies

  • is there a custom build step in the project? What happens if you run the commands in the command prompt after calling vcvarsall.bat?


    Visual C++ MVP

    Monday, October 29, 2012 7:42 PM
  • Whenever I try to build my VC++ code on VS2010.It is giving me

    "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1."

    this error.Can you please help me in solving this.Actually we are moving from VS2005 to VS2010.

    Thank you

    Go Project->Properties->Configuration Properties->Custom Build Step and execute the "Command Line" in a cmd window manually. Probably there may be an error in your commandline

    Thanks, Renjith V R

    Tuesday, October 30, 2012 6:07 AM