Error MSB6006: “mt.exe” exited with code 31

后端 未结 11 2191
孤城傲影
孤城傲影 2020-12-15 15:54

I ran into this problem today while migrating a VS2008 solution to VS2010. The problem occurred in either of the following scenarios:

  1. Rebuild Solution
11条回答
  •  隐瞒了意图╮
    2020-12-15 16:30

    I have a project (*.sln) written in visual studio c 8.0. It was migrated to VC10 recently. When I choose the "Release mode", it was compiled sucessfully. But if I choose "Debug mode", the error " MSB6006 mt.exe code 31" happened.

    I found that, in the debug mode, it used a wrong sub-project to startup. After fixing the startup sub-project, it goes fine so far.

    ---- new status --- This won't fix the problem. It just makes the problem disapear temporalily by rebuilding-all. Also, there are other faults caused by the migration. The "resources.h" is missed from the new project and the "winres.rc" is shorten.

提交回复
热议问题