Visual Studio 2022 professional performance is very slow

Aamir Khan 0 Reputation points
2023-11-23T09:00:23.7266667+00:00

We are facing performance issue with code compilations using VS2022. Visual Studio 2022 has been installed in the C drive, while the compilation code is located in the D drive. The compilation process is significantly slower now, taking around 10 minutes compared to the previous time of approximately 1 minute with the same solution. Both drives are SSDs, and the setup is running on AWS EC2.

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-11-24T03:07:32.2133333+00:00

    Hello @Aamir Khan,

    Welcome to Microsoft Q&A forum.

    Do you still remember what had changed before this issue appeared, such as updating Visual Studio 2022(try to rollback VS from VS Installer > More > Rollback to previous version), installing and using some extensions(try to disable them or remove them temporarily to check), modifying some configurations like path, name and so on?

    Please also try to clean project cache by removing the hidden .vs folder in solution folder and bin/obj folders, then rebuild the solution.

    If possible, try to clean VS cache(rename/remove ComponentModelCache folder in C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX directory), and try to reset VS settings by running devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022 Professional.

    Besides, if you are using some NuGet packages, please try to clean NuGet cache and restore the packages.

    Best Regards,

    Tianyu


    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.


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.