With VS 2022, in my case it was the project.csproj.user that contained a path that did not exist any more from which i debugged once.
For some unknown reasons, VS was not displaying that correctly in the project properties as in the screenshot of @Deano
Deleting the project.csproj.user file did the job.