建设视觉工作室项目
我对 Visual Studio 还很陌生,我已经通过电子邮件收到了一个 VC++ 项目,但无法构建它。我认为这与一个名为 SubWCRev 的外部工具有关。最初的错误导致我安装了 TortoiseSVN,因为它似乎在构建过程中寻找它。现在,构建错误显示:
1>Project : error PRJ0019: A tool returned an error code from "Building prodver.h"
构建日志列出了一些处理该工具的批处理命令,基本上只是再次列出了上述错误。我认为我并不真正需要这个工具,并且我尝试通过修改 .vcproj 文件来阻止它运行。我基本上注释掉了文件中引用 subwcrev 的行,但它根本没有改变行为。出现同样的错误。
我在 32 位 XP 上使用 Visual Studio Express 2008,该项目最初也是使用 VS2008 构建的。
有谁知道如何阻止该工具运行或者我是否无法解决此问题?
I'm pretty new with visual studio, and I've been emailed a vc++ project, but unable to build it. I think it has something to do with an external tool called SubWCRev. The initial errors led me to install TortoiseSVN since it appeared it was looking for it during the build process. Now, the build error says:
1>Project : error PRJ0019: A tool returned an error code from "Building prodver.h"
The build log lists some batch commands that deal with this tool, and basically just lists the above error again. I don't think I really need this tool, and I've tried to prevent it from running by modifying the .vcproj file. I basically commented out the lines in the file referring to subwcrev, but it didn't change the behavior at all. The same error occurs.
I'm using visual studio express 2008 on 32 bit xp, and the project was originally built with VS2008 as well.
Does anyone have any ideas either how to prevent this tool from being run or if I'm way off in troubleshooting this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
严格基于此,看起来 SubWCRev(TortoiseSVN 中包含的工具)用于创建文件“prodver.h”(很可能是产品版本)。该文件很可能在其他地方引用,因此仅删除 SubWCRev 步骤不太可能解决您的问题。此外,如果您没有代码的 Subversion 工作副本,则 SubWCRev 在任何情况下都无法工作。
一种可能的解决方案是手动创建“prodver.h”文件,然后消除调用 SubWCRev 的构建步骤。
Based strictly on that, it looks like SubWCRev (which is a tool included in TortoiseSVN) is used to create the file "prodver.h" (product version, most likely). That file is more than likely referenced elsewhere, so just removing the SubWCRev step is unlikely to solve your problems. In addition, if you don't have a Subversion working copy of the code, SubWCRev won't work in any case.
One possible solution would be to manually create the "prodver.h" file, then eliminate the build step(s) that call SubWCRev.