错误 MSB6006:“mt.exe"退出代码 31 [英] Error MSB6006: "mt.exe" exited with code 31

查看:29
本文介绍了错误 MSB6006:“mt.exe"退出代码 31的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天在将 VS2008 解决方案迁移到 VS2010 时遇到了这个问题.问题出现在以下任一场景中:

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

  1. 重建解决方案
  2. 先清理后构建解决方案

如果我在其中任何一个之后进行第二次构建,问题就不会出现.使用 Google 时,我真正想到的只是 Microsoft 有一年历史的博客,他们说他们无法重现该问题,或者在未来的版本中已修复.

If I did a second Build after either of these, the problem did not show up. Using Google, all I really came up with was year-old blogs from Microsoft saying they are unable to reproduce the problem, or that it is fixed in a future release.

我发现的最好的东西在这里:Mikazo 技术博客:解决Visual Studio 2010 中的 MT.exe 错误

The best thing I found was here: Mikazo Tech Blog: Solve MT.exe Errors in Visual Studio 2010

在上面的文章中说问题与Manifest生成有关,解决方案是在Linker-->Manifest下的设置中关闭Manifest.这个项目我不需要 Manifests,但我还是不满意.

In the above article it said that the problem is related to Manifest generation, and that the solution is to turn off Manifests in settings under Linker-->Manifest. I don't need Manifests for this project, but I still wasn't satisfied.

我已经解决了这个问题,我只想回答我自己的问题,因为我没有在 StackOverflow 上发现这个特定的错误(代码 31).

I have solved this, and am simply going to answer my own question, because I haven't found this specific error (code 31) on StackOverflow.

推荐答案

使用进程监视器和 dbgview 我发现 msmpeng (Microsoft Security Essentials) 正在访问该文件,就在 mt.exe 想要独占它时.排除开发目录解决了问题.当然,这仍然是一种解决方法.

Using process monitor and dbgview I discovered msmpeng (Microsoft Security Essentials) was accessing the file, just when mt.exe wanted to have it exclusively. Excluding the development directory solved the problem. It is still a workaround of course.

这篇关于错误 MSB6006:“mt.exe"退出代码 31的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆