gpt4 book ai didi

c# - VS 2010 : Prevent display of Build Summary in the output window

转载 作者:太空狗 更新时间:2023-10-30 00:46:31 24 4
gpt4 key购买 nike

当您在 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 添加了构建摘要之后。因此,当我使用相同的设置(例如“安静”选项)在 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 add-in 提供的- 参见 this blog entry .您可以调查该加载项的设置并查看是否可以禁用此摘要,或者删除该加载项以便您不再看到此摘要详细信息。

对于那些感兴趣的人,我用 this Google query 找到了这个.


archive.org 2011/12/30 mokosh.co.uk/post/tag/vscommands/
archive.org 2011/09/16 mokosh.co.uk/post/2010/05/03/vscommands-2-2-0-0-released/

关于c# - VS 2010 : Prevent display of Build Summary in the output window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3082049/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com