Posted 30 August 2020, 10:36 pm ESTHi C1,
since a few days, I observe a Visual Studio 2019 hang when a solution/project is open and the "csproj" file is changed by an external tool.
To reproduce: use the attached file "ColorWatcher.zip" (it is just a small helper utility of ours, the content is probably not relevant).
1) open the solution
2) open the "ColorWatcher.csproj" file with an editor and make any change. Save the change!
3) the message "project was modified. Reload?" pops up => click "Reload":
4) now it hangs at "Unloading the selected projects" step forever:
It works when disabling the extension "ComponentOneLicenseAdder".
This "external change" happens quite often for us because of the way our solutions are organized.
For example, we have two solutions which share projects. If I have both solutions open and perform a "Get latest version" and a colleague has committed a change to the project file, then the solution will reload in the current Visual Studio instance, but the second instance will hang.
The same happens if I merge a change from RELEASE to DEV branch and I have the DEV branch solution open in another Visual Studio.
For the records: this was first posted in the Microsoft Developer Community: https://developercommunity.visualstudio.com/content/problem/1161745/visual-studio-2019-hangs-after-external-project-fi.html