在这个构建期间是什么意思

在这个构建期间是什么意思

本文介绍了“以代码 9009 退出"是什么意思?在这个构建期间是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误信息是什么意思?我可以做些什么来纠正这个问题?

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

AssemblyInfo.cs 退出,代码为 9009

该问题可能发生在 Visual Studio 中 .NET 解决方案的构建后步骤中.


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

推荐答案

您是否尝试提供在构建前或构建后事件命令中运行的命令的完整路径?

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

由于 Visual Studio 2008 中的 xcopy 构建后事件命令,我收到了 9009 错误.

I was getting the 9009 error due to a xcopy post-build event command in Visual Studio 2008.

命令 "xcopy.exe/Y C:projectpathproject.config C:compilepath" 以代码 9009 退出.

但就我而言,它也是间歇性的.也就是说,错误消息会一直持续到计算机重新启动,并在计算机重新启动后消失.在我尚未发现的一些远程相关问题之后,它又回来了.

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

但是,在我的情况下,提供带有完整路径的命令解决了这个问题:

However, in my case providing the command with its full path solved the issue:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath

而不仅仅是:

xcopy.exe /Y C:projectpathproject.config C:compilepath

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

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

同样如对这篇文章的评论所述,如果完整路径中有空格,则需要在命令周围加上引号.例如.

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 spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

请注意,此示例没有测试空格.

Note that this example with regards to spaces is not tested.

这篇关于“以代码 9009 退出"是什么意思?在这个构建期间是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 16:17