The command “”.\Bin\mt.exe" -nologo -manifest … exited with error code 3 in CCNET

血红的双手。 提交于 2019-12-11 08:16:20

问题


I am trying to build my VS 2008 project in CCNEt and getting the below error

 <message level="high"><![CDATA[".\Bin\mt.exe" -nologo -manifest "C:\MyProject\MyFile.exe.manifest" -outputresource:"C:\MyProject\bin\Release\MyFile.exe;#1"]]></message>

<message level="high"><![CDATA[The system cannot find the path specified.]]></message>

<error code="MSB3073" file="C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets" line="3397" column="13"><![CDATA[The command "".\Bin\mt.exe" -nologo -manifest "C:\MyProject\MyFile.exe.manifest" -outputresource:"C:\MyProject\bin\Release\MyFile.exe;#1" exited with code 3.]]></error>

This project builds happily on my local server.

ALso there is no Bin folder in M.Net\Framework\v3.5....

Any help will be awesome

I also did an msbuild on the project and got the same error.


回答1:


If you are getting the above message

it's most likely coz you are trying to build your solution on a server which has Visual Studio 2008 or the .net Framework 3.5 SDK not installed

and are copying files from your dev computer to server to make things work

well here is the solution

copy the

C:\program files\Microsoft SDKs

folder (thanks @leppie for that)

to your CCNet / build server.

Next you need to update the registry telling the .net framework where the SDK is

See below screenshot for details

you will have to create the Windows key and then add the strings alt text http://www.freeimagehosting.net/uploads/791375b079.png




回答2:


error 3 is "The system cannot find the path specified."

suggest trying sysinternals procmon to see what it is looking for (And failing to find)




回答3:


You need to add the path to the SDK\bin directory.

EG:

c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\


来源:https://stackoverflow.com/questions/2505612/the-command-bin-mt-exe-nologo-manifest-exited-with-error-code-3-in-cc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!