什么"退出,code 9009"此版本中是什么意思? [英] What does "exited with code 9009" mean during this build?

查看:1277
本文介绍了什么"退出,code 9009"此版本中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么错误信息是什么意思?我能做些什么来解决这个问题呢?

What does this error message mean? What could I do to correct this issue?

AssemblyInfo.cs中退出,code 9009

AssemblyInfo.cs exited with code 9009

该问题可能是由于发生在Visual Studio .NET解决方案生成后步骤的一部分。


The problem is probably happening as part of a post-build step in a .NET solution in Visual Studio.

推荐答案

你有没有试着给命令是在pre或生成后事件命令运行的完整路径?

Did you try to give the full path of the command that is running in the pre- or post-build event command?

我正在9009错误由于XCOPY生成后事件命令(Visual Studio 2008中)。 命令XCOPY.EXE /YC:\projectpath\project.config C:\ compilepath \退出,code 9009

I was getting 9009 error due to a xcopy post-build event command (Visual Studio 2008). The command "xcopy.exe /Y C:\projectpath\project.config C:\compilepath\" exited with code 9009.

但是,在我的情况下,它也是断断续续的。也就是说,错误信息仍然存在,直到重新启动计算机。计算机重新启动后消失。这是距今约远程相关的问题我还没有发现之后。

But in my case it was also intermittent. That is, the error message persists until a restart of the computer. Disappears after a restart of the computer. It is back after some remotely related issue I am yet to discover.

不过,在我的情况,提供其完整路径的命令解决了这个问题:
C:\ WINDOWS \ SYSTEM32 \ XCOPY.EXE /YC:\projectpath\project.config C:\ compilepath \
,而不是仅仅 XCOPY.EXE /YC:\projectpath\project.config C:\ compilepath \

However, in my case providing the command with its full path solved the issue:
c:\windows\system32\xcopy.exe /Y C:\projectpath\project.config C:\compilepath\
instead of just xcopy.exe /Y C:\projectpath\project.config C:\compilepath\

如果我没有完整的路径,它运行在重新启动后一段时间,然后停止...

If I do not have the full path, it runs for a while after a restart, and then stops...

也提到在评论这一职务,如果有空格的完整路径,然后有需要的报价周围的命令标记。例如。 C:\用空格\ ABCDEF \ XCOPY.EXE文件夹/YC:\projectpath\project.config C:\ compilepath \
请注意,这个例子与问候空间没有进行测试。

Also as mentioned on the comments to this post, if there are spaces in full path, then one needs quotation marks around the command. E.g. "C:\The folder with spaces\ABCDEF\xcopy.exe" /Y C:\projectpath\project.config C:\compilepath\
Note that this example with regards to spaces is not tested.

这篇关于什么"退出,code 9009"此版本中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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