What does this option do? It is accessible from the Build menu.
I wanted this to be a comment but apparently need 50 rep.
To warn others, I find the rebuild solution doesn't do a clean myself. I'll often not I need to clean it and build/rebuild it after for it to work - I think rebuild it's self forces a full compile without clean and overrides everything, but does not get rid of the extras.
Did not look into what rebuild does code wise, just a general observation in case someone else has the same issue.