Go to Tools – Options – Projects and Solutions – Build and Run page.  The first combo box is Before building: with the options to

  • Save all changes
  • Save changes to open documents only
  • Prompt to save all changes
  • Don’t save any changes

I’ll follow up with another tip of the day on how to use pre and post build events.

Happy Visual Studio’ing!