Since I commented before I had the same problem, but now I understood the reason and found a solution.
I just got a new car last week (this problem was actually one of the reasons), and after a while I had the same problems that I could not debug my projects. Fortunately, because I installed all the updates one by one, I was able to pinpoint when it happened.
The latest update for " Microsoft ASP.NET and Web Tools " seems to be expanding something.
Unfortunately, uninstalling or repairing the web tool extension is not easy: Uninstall this extension by going to the Windows control panel and changing the installation of Visual Studio . I had to completely remove Visual Studio and reinstall it (the repair did not do the trick). You can update and install all your extensions as you wish, just make sure that you do not update the extension of web tools
I tested this on my old car, and he did the trick too.
I also created a problem on GitHub , since I will not update the extension until it is fixed, if anyone has additional information, please add it to the problem.
source share