VisualStudio debug problems--keeps building old version

So, I made it to section 2, lecture 18, and I started seeing strange behaviour from Visual Studio (v. 14.0.25431.01 Update3):

While testing use of functions in lecture 18, I wasn’t seeing any changes in the build VS would run. I started commenting out all the code, and it’s still running the version of the solution I got to at the end of the last lesson.

It was definitely updating before that (the getline lesson stuff debugged as I expected.

I’ve tried building a quick-and-dirty new project and copying over all the main.cpp code; it won’t run. I’ll go back to the earlier lectures and double-check my project settings, but this feels a bit beyond the scope of what we’ve covered. Stack Overflow has some suggestions about troubleshooting for other people’s projects, but none of the solutions seem to apply. (stuff like browser caches for silverlight projects.)

Anyone seeing this behaviour?

What build are you building for? As you need to be building for Development Editor (ignore what my cursor is actually hovering over)

And if you are building for Development Editor, did you try rebuilding your solution?

I didn’t find that build setting, but I tried rebuild and it seems to be working again. Thanks!

so… why is VS suddenly not rebuilding as I go? (I never had to rebuild before; does it have something to do with the way protocols are handled compared to the simple stuff I was doing earlier?)

You don’t have to rebuild every single time, just sometimes something goes wrong and you have to rebuild it (cleaning the solution and compiling everything fresh). I wouldn’t dwell on it too much. Just if you think there’s nothing wrong with your code and you’re getting unexpected behavior, just try rebuilding.