I have a copy of VS2008 on an old PC - and a copy of VS2019 on my latest PC - and a copy of VS2015 on an intermediate PC...

For VS2008 AND VS2019 if I rebuild a project, then select Build (immediately after finishing the rebuild) it just tells me everything's up-to-date and nothing else happens (which is exactly what I'd expect).

But for the VS2015 machine, pressing Build (immediately after a rebuild) will often run the pre & post build steps - even though it doesn't run the compile or link stages. What's weird is that it only does this for maybe 50% of my projects and I can't seem to find out what's different between those ones and the others, where it works okay.

Can anyone remember if this was an issue in VS2015? And if so, is there a workaround?