该命令退出了代码2 visual studio 2017 [英] The command exited with code 2 visual studio 2017

查看:106
本文介绍了该命令退出了代码2 visual studio 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

While I am trying to build my windows application, I am getting following error.

The command "C:\repos\CommunityLive\CL_GateApp\signing\StrongNameUnsignedAssemblies.bat C:\repos\CommunityLive\CL_GateApp\signing\" exited with code 2.





我尝试过:





What I have tried:

Following is my Pre-Build event command line

$(ProjectDir)signing\StrongNameUnsignedAssemblies.bat $(ProjectDir)signing\

Here is the Macros details

[![Macros][1]][1]

		


  [1]: https://i.stack.imgur.com/slCzG.png

推荐答案

(ProjectDir)签署\StrongNameUnsignedAssemblies.bat
(ProjectDir)signing\StrongNameUnsignedAssemblies.bat


(ProjectDir)签名\

这是宏细节

[![宏] [1]] [1]




[1]:https://i.stack.imgur.com/slCzG.png
(ProjectDir)signing\ Here is the Macros details [![Macros][1]][1] [1]: https://i.stack.imgur.com/slCzG.png


错误代码(也是退出代码)2表示找不到文件。



因此,在批处理文件的某个地方,指定了一个不存在的文件以及尝试执行的任何命令退出该退出代码。



由于我们对您的批处理文件一无所知,因此除此之外不可能告诉您任何事情。
An error code (also exit code) of 2 means "File not found".

So, somewhere in your batch file, a file was specified that doesn't exist and whatever command that tried to execute exited with that exit code.

Since we know nothing about your batch file, it's impossible to tell you anything beyond this.


这篇关于该命令退出了代码2 visual studio 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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