简体   繁体   中英

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

In Visual Studio 2008 when you build in 'quiet' mode the build output window looks something like this:

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 ==========

This is good because the last two lines of the output window quickly shows me the result of the build (success/fail).

In Visual Studio 2010 Microsoft have added a build summary after this. So when I build in VS 2010 with the same settings (eg. 'quiet' option) I get the following displayed after the stuff that's already shown in VS 2008. This looks like this:

------ 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

This is a step backwards by MS as now I have to scroll up in the build output window to see whether the build succeeded or not.

Is there any way of getting this back to the old VS 2008 behaviour?

This output is not from Visual Studio or MSBuild, it is provided by the VSCommands add-in - see this blog entry . You can investigate settings for that add-in and see if this summary can be disabled, or remove the add-in so that you no longer see this summary detail.

For those that are interested, I found this with this Google query .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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