获取MSBuild将文件输出到日志? [英] Get MSBuild to output a file to the log?
本文介绍了获取MSBuild将文件输出到日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个输出到文件的程序.我正在从MSBuild项目运行它.我希望将此输出写入StdOut,以便我们的构建代理(TeamCity)可以选择它.
I've got a program that outputs to a file. I'm running it from an MSBuild project. I'd like this output to be written to StdOut, so that it can be picked up by our build agent (TeamCity).
如何让MSBuild将文件内容转储到输出中?
How do I get MSBuild to dump the content of a file to the output?
推荐答案
dos命令 type 可以做到这一点.
The dos command type could to that.
<Target Name="ExecProgramAndOutputToStdOut">
<Exec Command="YourProgram.exe"/>
<Exec Command="type output_file"/>
</Target>
这篇关于获取MSBuild将文件输出到日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文