How to set MSBuild to compile multiple times?
07/11/2017 1049 views
In our current product, we have multiple solution files of visual studio and multiple projects in them.
All of them are interlinked and interdependent.
So, the 1st project is dependent on files created by 3rd and 3rd on 4th and 4th on 1st , etc.
So, if we compile 1st project it will fail as the 3rd is not generated the binary files yet, and we continue to compile the 2nd and it also fails and then 3rd, the 3rd will be successful as the 1st and 2nd are partially compiled and the relevant files are available.So once all the projects are compiled, I will retry the failed projects and they will be successful.
So to automate all this part, I have written scripts in python and in that I am doing the retry 5 times and failing the build process if the 5 times limit is completed.
The complete build process I have written my own logic in python.
The requirement now is, We want to switch from this custom written code to existing automation tools like Jenkins, so that it will be well structured.But I didn't see the project compilation retry option in MSBuild.
Can anyone please suggest.
Be the first to answer this question