Reputation: 2784
I have a solution that one of its projects takes too long to compile and rarely changes. That means that if a developer "ReBuild" the whole solution it will take time (though nothing was changed in this specific project).
I was suggested maybe to add some "pre-build event command line" but how exactly will I check if there is need to compile (I do want it to compile of it was changed)? and - if I can fail it - is this good practice? (in terms of continous integration etc.)
feel free to suggest any other way that I can avoid rebuild if no need even if some developer did mean rebuild for the entire solution.
Upvotes: 0
Views: 225
Reputation: 258618
VS will usually figure out what needs to be re-built and only compile the appropriate projects. There are some steps you can take though:
Upvotes: 2