Visual Studio 2019 taking longer time to build and debug unit tests

RAJAGOPAL Siva P 1 Reputation point
2021-12-23T06:41:50.577+00:00

I am using visual studio 2019 enterprise version 16.11.3. I am facing few issues like loading the solutions are taking more time than expected and while building the solutions normally it will take 20-30 minutes for building but it took 3 hours for me to complete the building process.
while debugging every unit test also it takes 10-15 minutes to hit the breakpoint. Please help me in resolving the issue

Developer technologies | Visual Studio | Debugging
Developer technologies | C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-12-23T09:53:27.303+00:00

    Hi @RAJAGOPAL Siva P ,

    Welcome to Microsoft Q&A!

    Please create a new project and check if the situation disappears or not.

    I suggest you update your Visual Studio 2019 to the latest version and rebuild solution.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


  2. Lex Li 6,037 Reputation points
    2021-12-24T01:42:13.943+00:00

    It requires quite a lot of data to be collected from your machine for such investigations, so you'd better report to Microsoft and wait for a response, https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019 If you can afford it, open a support case via http://support.microsoft.com for quicker resolution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.