'Visual Studio 2022 Startup project could not launch

I have this error after updating Visual Studio 2022 to 17.2.0 version.

The error message pops up when I want to close the Visual Studio by X button enter image description hereor when I want to Build my solution with a few projects enter image description here(but when I build a solution with only one project the process succeeded without any error messages).

Thanks for your help in advance.



Solution 1:[1]

All was solved by deleting CurrentSettings.vssettings. It is usually located at Documents\Visual Studio 2022\Settings If not, go to Tools -> Options -> Environment -> Import and Export Settings ' to find the location of this file.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hans Passant