Share via

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

samer.alisaleh 101 Reputation points
2023-05-23T12:41:55.2166667+00:00

Hi,

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.

Thanks

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


14 answers

Sort by: Most helpful
  1. Anders Ravn 0 Reputation points
    2023-07-26T11:10:39.4566667+00:00

    For me, I had opened another solution yesterday. This had added a NuGet package that VS was trying to load from my first solution. I could see and remove this package by right clicking the Solution in Solution Explorer, Manage NuGet Packages For Solution. Then clicking the cog/settings icon in the top right corner. In NuGet Package Manager, Package Sources I could uncheck the unwanted package and click OK. Now I could clean and rebuild my solution again. Prior to that I had also deleted bin folders in the projects that was stalling the cleaning, in an attempt to clean manually. Not sure if this had any effect.

    0 comments No comments

  2. Brandon Tull 10 Reputation points
    2023-06-28T14:01:17.5266667+00:00

    I have not had this issue since using Visual Studio 17.7 preview 2.


  3. Veya, Alexandre 1 Reputation point
    2023-06-22T07:26:17.79+00:00

    We have also the same issue here.

    The strange think, it's that we all have different version. Even someone has Visual Studio 2019.

    It's look to happen randomly, but it's not very nice to have to reboot the computer.

    0 comments No comments

  4. Raju Battina 0 Reputation points
    2023-06-12T21:41:35.0066667+00:00

    By deleting files in folder "\bin\Debug\net6.0" helped me a bit to rebuild the application.


  5. Oksana Kokhan 0 Reputation points
    2023-06-07T19:33:32.2366667+00:00

    I had the same problem.
    Upgrading VS, and reinstalling haven't helped.
    The issue disappeared after restarting the computer.


Your answer

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