繁体   English   中英

VS 2010:防止在输出窗口中显示Build Summary

[英]VS 2010: Prevent display of Build Summary in the output window

在Visual Studio 2008中,当您在“安静”模式下构建时,构建输出窗口如下所示:

Compile complete -- 0 errors, 0 warnings
------ Build started: Project: JLTA.JBS.UI.Office.VSTODocument, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.Office.VSTOWorkbook, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.GeneralLedgerUpdater, Configuration: Debug Any CPU ------

Compile complete -- 0 errors, 0 warnings
========== Build: 86 succeeded or up-to-date, 0 failed, 0 skipped ==========

这很好,因为输出窗口的最后两行快速显示构建的结果(成功/失败)。

在Visual Studio 2010中,Microsoft 之后添加了构建摘要。 因此,当我使用相同的设置(例如'quiet'选项)构建VS 2010时,我会在VS 2008中显示的内容后显示以下内容。这看起来像这样:

------ Build started: Project: JLTA.JBS.UI.TestBed, Configuration: Debug Any CPU ------
========== Build: 78 succeeded or up-to-date, 0 failed, 0 skipped ==========

Build Summary
-------------
00:06.772 - Success - UI\TestBed\JLTA.JBS.UI.TestBed.csproj
00:05.926 - Success - UI\Main\JLTA.JBS.UI.Main.csproj
... <bunch of lines deleted here>
00:00.035 - Success - Bus\Budget\JLTA.JBS.Bus.Budget.csproj
00:00.032 - Success - Core\JLTA.JBS.Core.csproj

Total build time: 01:06.088

这是MS向后退一步,因为现在我必须在构建输出窗口中向上滚动以查看构建是否成功。

有没有办法让这个回到旧的VS 2008行为?

此输出不是来自Visual Studio或MSBuild,它由VSCommands加载项提供 - 请参阅此博客条目 您可以调查该加载项的设置,并查看是否可以禁用此摘要,或删除加载项以便您不再看到此摘要详细信息。

对于那些感兴趣的人,我通过Google查询找到了这个

通过为项目构建输出详细程度选择“Minimal”,我得到它像VS2008(工具 - >选项 - >项目和解决方案 - >构建和运行)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM