Solution build failue when a project is skipped

Hi Guys,

I have simple question. Is it possible(using FinalBuilder 5) to fail a solution build incase not all projects are compiled succsefully? for example, if one of the projects is skipped for some reason it does not consider it as a failure and the build is considered as passed succssfully.

Thanks in advance,

Avi

Hi Avi,

Yes, you can do this but you’ll have to write some script code.

In the OnStatusMessage script event for the Build VS.NET Solution action, you can search for a specific string and set a FinalBuilder variable if that string is found. Then in the AfterAction script event, you can force the action to fail based on that variable.

hth.