Complete solution in simple steps
Visual Studio - 2022
- Open Visual studio
- open Solution Explorer (Ctrl + Alt + L)
- Right click on your project
- click on "properties"

- In the left panel , click "debug"
- Under "General" , there is "Open debug launch profiles UI"
- A new dialog box (launch profiles) will be there
- look for launch browser and untick the checkbox

- close all dialog box, you are done
Thanks