问题
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?
回答1:
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.
回答2:
I get it like VS2008 by selecting "Minimal" for project build output verbosity (Tools --> Options --> Projects and Solutions --> Build and Run)
来源:https://stackoverflow.com/questions/3082049/vs-2010-prevent-display-of-build-summary-in-the-output-window