如何从MSBuild将消息输出到Visual Studio输出窗口? [英] How do I output messages to the Visual Studio output window, from MSBuild?

查看:163
本文介绍了如何从MSBuild将消息输出到Visual Studio输出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将<Message>元素添加到Visual Studio项目文件中的任务中,以便调试生成过程.但是,元素对写入Visual Studio输出窗口的文本没有影响.

I have tried adding <Message> elements to tasks in a Visual Studio project file, in order to debug the build process. However, the elements have no effect on the text that is written to the Visual Studio output window.

是否可以通过向正在构建的项目中添加标记来将消息写入Visual Studio输出窗口?

Is there a way to write messages to the Visual Studio output window, by adding markup to the project being built?

推荐答案

工具下→ 选项项目和 解决方案构建并运行 MSBuild项目构建输出的详细程度 组合框.这控制了多少信息 您想要在输出"窗口中看到的内容.

Under ToolsOptionsProjects and SolutionsBuild and Run, there’s the MSBuild project build output verbosity combo box. This controls how much info you want to see in the Output window.

这篇关于如何从MSBuild将消息输出到Visual Studio输出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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