Quote Originally Posted by gwboolean View Post
If I delete the bin and obj folders will they be rebuilt?

By the way Sitten, the little message you put at the bottom of your reply really makes me feel confident about your suggestion.
It's a bit of snark that held true for a month or so. It seemed no matter what topic I posted about, if I posted a solution someone came back with, "...or use a TableAdapter instead." My favorite was one about "my TableAdapters are broken" where, after a few days, I posted, "Why not just use this ADO code, does it work?" and then everyone kept going on for a week or so after as if I spoke in a different language.

When I put the thing in my signature, it seemed to satisfy them. Now that I'm automatically rebutted, they don't feel a need to show how they use a TableAdapter to store a row in a database that feeds into a system that starts Visual Studio and builds projects for them and would obviously solve your problem.

Anyway:

At a high level Visual Studio is a tool for converting your source code into those bin and obj folders. Its job is to create them. So if you delete them, it sighs and builds them again, usually the right way this time. You'll have to go delete them at least a few dozen more times this year, I bet. Compilation is complex, and it gets confused sometimes.

Just last week, one of my bosses wasted 2 hours chasing a compile error that turned out to be, "I need to delete my obj folder".

Making a backup of your folder might help, but I see it this way: at this point it can't get much worse than "doesn't build".