热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

VisualStudio中的管道构建事件-pipesinVisualStudiobuildevents

ImusingVisualStudio2005ExpressEditionwithSP1.我正在使用带有SP1的VisualStudio2005ExpressEdition

I'm using Visual Studio 2005 Express Edition with SP1.

我正在使用带有SP1的Visual Studio 2005 Express Edition。

I have a Pre-Link Event which needs to invoke one program and send its output to another.

我有一个预链接事件,需要调用一个程序并将其输出发送到另一个程序。

foo | bar

This command works as expected when invoked from a command line or batch file. The command fails when invoked from the Pre-Link Event (even if the Pre-Link Event invokes a separate batch file containing the command). 'foo' runs and produces output which appears in Visual Studio, but this output is not fed to 'bar', and in fact it appears 'bar' is never invoked at all. Even when the Pre-Link Event invokes CMD or NMAKE which in turn invokes the piped commands, only 'foo' runs.

从命令行或批处理文件调用时,此命令按预期工作。从预链接事件调用时,该命令失败(即使预链接事件调用包含该命令的单独批处理文件)。 'foo'运行并产生出现在Visual Studio中的输出,但是这个输出没有输入'bar',实际上它似乎根本就没有调用'bar'。即使预链接事件调用CMD或NMAKE,而CMD或NMAKE又调用管道命令,只有'foo'运行。

Is Visual Studio broken and/or is there some arcane ritual I can perform to make this work?

Visual Studio是否已损坏和/或是否有一些我可以执行的神秘仪式来使其工作?

1 个解决方案

#1


This was answered here for the > operator. I suspect the same thing may be happening with pipes.

这是在>运营商处回答的。我怀疑管道可能会发生同样的事情。


推荐阅读
author-avatar
苦蔷薇1988
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有