# Solution build failue when a project is skipped

**URL:** https://www.finalbuilder.com/forums/t/solution-build-failue-when-a-project-is-skipped/504
**Category:** Discussion
**Created:** [June 25, 2007, 10:12am UTC](https://www.finalbuilder.com/forums/t/solution-build-failue-when-a-project-is-skipped/504 "2007-06-25T10:12:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 25, 2007, 10:12am UTC](https://www.finalbuilder.com/forums/t/solution-build-failue-when-a-project-is-skipped/504/1 "2007-06-25T10:12:24Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 25, 2007, 10:23am UTC](https://www.finalbuilder.com/forums/t/solution-build-failue-when-a-project-is-skipped/504/2 "2007-06-25T10:23:04Z")

</div>

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](http://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.
