How to analyze indefinite project loading of UnitTest project in Visual Studio 2022

Tobias 0 Reputation points
2023-02-06T21:09:47.1666667+00:00

When I switch between branches where some project/solution files have been changed, Visual Studio reloads projects files. Whenever the same UnitTest (NUnit) project is loaded, Visual Studio starts to consume as much memory as it gets (16GB and more) without finishing ever.

How/where can I get some information on that issue to resolve it?

Any other suggestions what to do?

Other members in the team don't have this issue.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,785 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,521 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
334 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,221 Reputation points Microsoft Vendor
    2023-02-07T09:44:48.68+00:00

    Hi @Tobias

    Welcome to Microsoft Q&A! 

    In fact, switching between Git branches will cause Visual Studio to reload project files. Please update your VS2022 to the latest version to get a better Git experience. 

    Meanwhile, you can check if you have any anti-virus software or third-party extensions installed, temporarily disable them. 

    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.

    1 person found this answer helpful.
    0 comments No comments