Visual Studio 2019 Build hangs when Error List is open

Giuseppe Carafa 96 Reputation points
2021-03-23T17:09:02.56+00:00

Since the last couple of updates to Visual Studio 2019 I find that my solution "hangs" very often when I rebuild it.

After some investigation it seems to me that this issue arises when the "Error List" pane is shown

80630-errorlistopen.png

When I close the Error List pane the build doesn't "hang" and it runs to completion.

I have tried various other things. For example building only the main application or building the entire solution, debug or release configurations, x86, x64 or AnyCPU platforms, none of it makes a difference.

Any idea what may be going on here?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,571 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,805 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,381 Reputation points Microsoft Vendor
    2021-03-24T06:31:47.613+00:00

    Hi @Giuseppe Carafa ,

    Welcome to Microsoft Q&A!

    What is your project type? Have you tried to create a new project and check if the situation occurs in specific project?

    In addition, I suggest you close all instances of Visual Studio and update your Visual Studio 2019 to the latest version.
    Then, delete the hidden .vs, bin and obj folders in the solution(project) folder.
    After that, re-launch your Visual Studio and check if the situation disappears.

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    1 person found this answer helpful.

  2. Karen Payne MVP 35,026 Reputation points
    2021-03-25T03:10:12.883+00:00

    Some ideas

    • If possible, consider placing some of the project in a different Visual Studio solution and reference them in the current Visual Studio solution. The projects in the other solution would be ones that don't change or seldom change
    • Try each of the following one at a time
    • Exclude projects from a build (other possible options on this page).
    • Under Tools -> Options -> Projects and Solutions -> Build and Run. up the number of maximum of parellel project builds
    • Under Tools -> Options -> Projects and Solutions -> General, un-check "Always show Error List if build finishes with errors"
    • Also if possible, start Visual Studio in safe mode to ensure no extensions are interfering with the build
    • Try changing setting in the two combo boxes shown below

    81309-errorlist.png