我怎样才能解决这个错误:"命令[...]代码为1 QUOT退出;? [英] How can I resolve the error: "The command [...] exited with code 1"?

查看:301
本文介绍了我怎样才能解决这个错误:"命令[...]代码为1 QUOT退出;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过各地的许多问题,但我已经无法找到适合我的答案。

I've read around many questions but I've not been able to find the right answer for me.

当我尝试编译在VS2012我的一个项目产生这样的结果:

As I try to compile a project in VS2012 I have this result:

命令...... \tools\bin\\\
uget包Packages\Lib.Html.nuspec - 输出目录.... \bin\Zip\Packages -NoPackageAnalysis退出,代码为1。

The command "....\tools\bin\nuget pack Packages\Lib.Html.nuspec - OutputDirectory ....\bin\Zip\Packages -NoPackageAnalysis" exited with code 1.

我找的代码在我的.csproj文件中的行,这里的误差应,并且有:

I looked for the line of code in my .csproj file, where the error should be, and there is:

<Exec Command="$(ProjectDir)..\..\tools\bin\nuget pack $(ProjectDir)Packages\Lib.Html.nuspec -OutputDirectory $(OutputPath)Packages -NoPackageAnalysis" />  



我在做什么错了?

What am I doing wrong?


启动该项目的调试,而忽略建设的错误,我有一个新的警告:

Launching the Debug of that project and ignoring "building errors", I have a new alert:

的Visual Studio无法启动调试,因为调试目标[project.exe路径]缺少
请生成项目,然后重试,或适当设置OutputPath和性能的AssemblyName在目标装配正确的位置点。

"Visual Studio cannot start debugging because the debug target '[project.exe path]' is missing. Please build the project and retry, or set OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."

推荐答案

第一步是搞清楚什么错误实际上是。为了做到这一点扩展的MSBuild的输出进行诊断。这将显示执行的实际命令,并希望完整的错误信息,以及

The first step is figuring out what the error actually is. In order to do this expand your MsBuild output to be diagnostic. This will reveal the actual command executed and hopefully the full error message as well


  • 工具 - >选项

  • 项目和解决方案 - >生成和运行

  • 更改MSBuild项目生成输出的详细程度来诊断。

这篇关于我怎样才能解决这个错误:&QUOT;命令[...]代码为1 QUOT退出;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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