Visual Studion 2022 Version 17.6 Hangs on Build\Clean\Rebuild All

samer.alisaleh 6 Reputation points


I have upgraded my Visual Studio 2022 to the latest version 17.6.1. Since then when I try to Run\Build project it hangs and I cant do anything to cancel the build except by ending VS from task manager. Please help. This is critical and I cant continue my development.


Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,144 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. kurtd 0 Reputation points

    I had to revert to 17.5.1 due to roslyn and charp start up issues . Repair failed, now I can't try the new copilot. Lost a whole day of work, which means sleep...

  2. Tianyu Sun-MSFT 16,906 Reputation points Microsoft Vendor

    Hello @samer.alisaleh ,

    Welcome to Microsoft Q&A forum.

    I suggest you try to remove the hidden .vs folder(in solution folder) and the ComponentModelCache folders in this directory: C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX.

    If it doesn’t work, please try to revert to a previous version of VS 2022, for example 17.5.4/17.5.5 as a temporary workaround, and report this issue on our Developer Community for further investigate.

    Besides, the issue @kurtd mentioned, is fixed and pending release, see this thread: RoslynPackage fails to initialize due to SettingsEditorFactory dependency error for details.

    Best Regards,


    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.

  3. Michael Hagesfeld 6 Reputation points

    tl;dr: This is an overall issue with Visual Studio, NOT a specific version.

    So my coworker was having this issue (specifically that when he ran his .Net 6 web project, then stopped it, he couldn't clean/rebuild, nor in any way delete the created exe file, without restarting his machine). He was on 17.6.1. I downloaded the project, and ran into the same issue. I was on 17.5.3. I saw this note and @Tianyu Sun-MSFT response, and thought "OK, I'll upgrade to 17.4 or 17.5". I couldn't do that, so I figured I'd upgrade to 17.6.1, still have the problem, and roll back.

    However, after installing 17.6.1 - everything worked fine. I mentioned this to my coworker, and eh said he had had a similar experience when he initially upgraded to 17.6.1. SO I am thinking that this is a Visual Studio issue, "solved" by upgrading/rolling back because it cleans out whatever is causing the issue in the first place, NOT by anything specific to a specific version.

    0 comments No comments