It used to do this, but now if I don't build the solution first before pressing F5, it uses the last built program.
I must have messed up a setting somewhere I think.
In most languages supported by Visual Studio, you can edit your code in the middle of a debugging session and continue debugging. To use this feature, click into your code with your cursor while paused in the debugger, make edits, and press F5, F10, or F11 to continue debugging.
In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).
Right-click the breakpoint symbol and select Conditions (or press Alt + F9, C). Or hover over the breakpoint symbol, select the Settings icon, and then select Conditions in the Breakpoint Settings window.
F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.
Open the "Tools" menu, and click "Options".
Expand "Projects and Solutions".
Click on "Build and Run" tab.
In the "On Run, when projects are out of date" dropdown, select "Always build".
You are probably working on a multi-project solution:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With