I'm working on a project that will run as a pre-build step to check if certain conditions have changed in a project. If they have, it should clean the project to force it to be rebuilt.
I've discovered this thread for starting MSBuild from within C#: running msbuild programmatically
But unfortunately the documentation I could find for these classes is not very detailed. Does anyone know of a way to fire off MSBuild from a C# app with the purpose of cleaning another project?