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

标签 c# .net visual-studio visual-studio-2010

当您在 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/

相关文章:

visual-studio - VS 2008 插件 - 具有结构突出显示 - 支持语法 Delphi Prism

c# - 如何使 Visual Studio 扩展的构建失败

visual-studio-2010 - 为什么 CSS 编辑器不起作用?

c# - Entity Framework - 一对多关系的问题

c# - RadAsyncUpload 抛出 HTTP 500,并在上传的文件名旁边显示一个红点

c# - 使用实体的 InvalidProgramException

.net - Windows Phone 7 应用程序与 Windows 8 操作系统的兼容性

c# - 这个加密代码安全吗?

.net - 使用 System.Linq.Expressions API 在 LINQ 中选择列

c# - 如何将 RestSharp 与异步/等待一起使用