I am using MSBuild from a script to compile my project. I have noticed that it just does a build and not a clean/rebuild.
I have the following:
Change
to
or
For more details, look at the MSBuild Task documentation.