SUMMARY
This article describes how to stop the Task List view from switching automatically when you experience build errors.
In a default installation of Visual Studio .NET, when you set the Task List view category to any option other than Build Errors, and then you build a Visual Studio .NET solution that generates build errors, the Task List view switches to the Build Errors task view automatically. This occurs because an Environment setting,
Show Task List window if build finishes with errors, is turned on.
back to the top
Set View Categories
The Visual Studio .NET Task List window has different views that show tasks in various pre-defined categories. To set these categories, right-click the Task List window, and then click Show Tasks.
back to the top
Change the Environment Setting
To change the Environment setting, follow these steps:
- On the Tools menu, click Options.
- Click the Environment folder, click Projects and Solutions, and then click to select (or click to clear) the Show Task List window if build finishes with errors check box.
If you clear this check box, the Task List view no longer switches to the Build Errors view when you experience project build errors.
back to the top
Open or Close the Task List
When this Environment setting is turned on (as it is by default), another issue that occurs is that the Task List window always opens when you build a solution that contains build errors, even if it is closed. If you want the Task List window to always remain closed, click to clear the
Show Task List window if build finishes with errors check box, and then close the Task List window.
To open the Task List window, use one of the following methods:
- Method 1: On the View menu, click Other Windows, and then click Task List.
- Method 2: Press Ctrl+Alt+K.
back to the top