"F5" Preview not updating my changes? Loads previous state?
Okay this is also another major problem I am having. Sorry for posting another post right after posting another one but I didn't want to combine them both.
Okay so I'm doing my project, save it a few times to be safe, maybe hit build a couple times too to check it out, and then hit f5 for a preview. Everything is going alright. Then, I add some more stuff, hit f5, and realize my changes were not made!
To test this out, I even opened a new project and hit f5, and it kept loading the same thing!
Lets say I add buttons to my form, I hit f5, they don't show up on the preview!
HELP!
Re: "F5" Preview not updating my changes? Loads previous state?
Try clearing your bin folder before rebuilding.
Re: "F5" Preview not updating my changes? Loads previous state?
yea try clearing your bin/Debug and Release folders. I dont know why this is happening. Maybe it fails to compile the new code so it uses your old exe? I dont know my VS dosnt do that.
Re: "F5" Preview not updating my changes? Loads previous state?
im using vb2008. yeah its reallly frustrating!! i push f5 and i get something from a looooong time ago! even when i do new project it still does it
but thanks ill try deleting the folders next time i try it
Re: "F5" Preview not updating my changes? Loads previous state?
I had the exact same problem it is probally because of an error in your code. Somewhere along the line you have an error and when you click F5 instead of it saying you can't run the application it just acts the way it was before the error.
This happened to me quite a bit of time, try adding Try Blocks and error handlers around your code.