/build/static/layout/Breadcrumb_cap_w.png

How to set MSBuild to compile multiple times?

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.

2 Comments   [ + ] Show comments
  • To be more specific , the current product solution files is not having any issue with order but it's like circle...like both 1 and 2 project files are dependent on each other..so 1 is failing without 2 and 2 is successful as 1 is partially built..so I will retry 1 again after 2.. to make it success...but if I try 2 first then it will fail as files from 1 not available.. it is not feasible to change the code as complete structure changes. - ur00361883 7 years ago
  • I posted the same question in FB. But got some weird replies to change the complete Architecture. If we have the solution in languages like python to create our custom build scripts.

    I think there will be solution for this in the existing tools also.I don't think what is the necessity of changing the product architecture to integrate it with jenkins.

    To remove the same chain of communocation here.I am giving the summary of conversation happened in FB for this question. - ur00361883 7 years ago

Answers (0)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ