错误MSB6006:“cmd.exe”退出代码1。 [英] error MSB6006: "cmd.exe" exited with code 1.

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

问题描述

在WIRESHARK中添加我的自定义插件后
我收到此错误。

after adding my custom plugin in WIRESHARK I am getting this error.

  "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
       "C:\Development\wsbuild64\plugins\epan\homematic\homematic.vcxproj.metaproj" (default target) (28) ->
       "C:\Development\wsbuild64\plugins\epan\homematic\homematic.vcxproj" (default target) (133) ->
       (CustomBuild target) ->
         C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe"
        exited with code 1. [C:\Development\wsbuild64\plugins\epan\homematic\homematic.vcxproj]







请帮助。代码在C

Kindly help. Code is in C

推荐答案

嗨朋友,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

你是什么意思自定义插件?它指的是.vcxproj文件中的一些C代码或一些自定义脚本?

What do you mean custom plugin ? It refers to some C code or some custom script in .vcxproj file ?

此错误消息始终表明您的自定义步骤出错:

Always this error message indicates that something is wrong with your custom steps:

1.Pre-build事件或构建后事件(请检查构建事件中是否有一些命令,右击项目=> properties =>构建事件)

1.Pre-build event or post-build event(Please check if you have some command in build-events, right-click project=>properties=>build events)

2.Msbuild在自定义目标中
Exec命令
(打开xxx.vcxproj文件并搜索 Exec标记

2.Msbuild Exec command in custom target(Open xxx.vcxproj file and search for Exec tag)

我认为您应该在构建过程中执行某些命令,并且该命令是原因(在构建期间,构建系统将调用cmd.exe来执行某些特定命令或.bat文件)

I think you should have some command to execute during the build process, and that command is the cause of this issue.(During build, build system will call cmd.exe to execute some specific command or .bat file)

请打开Windows提示符并将命令粘贴到它。运行,检查是否有错误并修复它。之后,将在Windows提示符下工作的命令复制回.vcxproj文件,这个问题就解决了。

Please open a windows prompt and paste the command to it. Run, check if there is something wrong and fix it. After that, copy the command which works in windows prompt back to the .vcxproj file, this issue is solved.

请告诉我它是否有用! 

Please let me know if it's helpful or not! 

如果您可以共享项目文件(.vcxproj)的内容,那么我可以直接为您检查它。期待您的回复!

And it could be better if you can share content of project file(.vcxproj) so that I can check it for you directly. Looking forward to your reply!

最好的问候

Lance


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

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