Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any clever way to launch a makefile in Visual Studio only if build succeeded?

We have a makefile that is built last in our build process using Visual Studio to launch our unit tests. Unfortunately if the build fails the makefile is still processed and we have extra (annoying) errors. Any way to prevent that?

Example Project A : build dummy.exe Project B (makefile) : build command is : run dummy.exe /unittest

We want Project B to skip its build command when Project A has build errors. Thanks!

like image 325
Enigme Avatar asked Dec 13 '25 06:12

Enigme


1 Answers

Set Project B (your makefile project) to be dependant on Project A. This way Project B will always try to build Project A before it builds.

like image 143
Joseph Daigle Avatar answered Dec 14 '25 21:12

Joseph Daigle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!