Same issues but on .NET 4.8. Started after installing Windows 11 24H2.
Error while trying to run project: Unable to start program...
The process has been terminated.
Refresh the process list before attempting another attach.
This worked for me (Probably GUI version of user27735398's answer).