You can change the VS setting to save all files before Build / Run. Go to
Tools-> Options-> Projects and Solutions-> Build and Run
Refresh Before creation and On when projects are out of date . Save all changes and always create accordingly.
source
share