Visual Studio发布生成事件MT.exe命令失败,代码为9009 [英] Visual Studio Post Build Event MT.exe command fails with code 9009

查看:440
本文介绍了Visual Studio发布生成事件MT.exe命令失败,代码为9009的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从我的发布事件中运行以下命令:

Hi I am running following command from my post build event:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe -manifest "$(ProjectDir)$(TargetName).exe.manifest" -updateresource:"$(TargetDir)$(TargetName).exe;#1"

以代码9009退出时失败.有什么建议吗?

It is failing with Exited with code 9009... I don't understand why this happens; any suggestions?

推荐答案

尝试在mt.exe路径周围添加引号,例如:

Try adding quotes around the mt.exe path, e.g.:

"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe"

此外,请确保该路径有效.

Also, make sure that path is valid.

希望这会有所帮助.我整天都在反对代码9009,这似乎是行之有效的.

Hope this helps. I've been beating my head against code 9009 all day and a full quoted path seem to make it work.

这篇关于Visual Studio发布生成事件MT.exe命令失败,代码为9009的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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