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