# Include FinalBuilder Project and Persistent Variables

**URL:** https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056
**Category:** Discussion
**Created:** [December 12, 2008, 5:55am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056 "2008-12-12T05:55:40Z")
**Posts on this page:** 6
**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: [December 12, 2008, 5:55am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/1 "2008-12-12T05:55:40Z")

</div>

Currently I have a single FinalBuilder project to handle all of our development builds for the product.&nbsp; I needed to add support for branch builds and rebuilds on top of the support I initially built for trunk builds.&nbsp; To solve it, I added a User Prompt and conditionally set a few variables, like V\_Major, V\_Minor, V\_Build, and V\_Revision, along with some project paths.

I now need to add support for running this in non-interactive mode, which makes the User Prompt action not possible.&nbsp; So I started using the Include FinalBuilder Project and abstracted setting the variables I need into the parent project, calling the base project to do the grunt work with a few assumed variables.

The problem I now have is that when using the Include FinalBuilder Project action, persistent variables in the included project (child), are no longer persistent.&nbsp; Even though the inf file shows the correct value persisted, when I run the parent project, the persisted values load the default value instead of the persisted value.&nbsp;

Is this intentional, or am I doing something wrong.&nbsp; Suggestions for the right way to do this are welcome.&nbsp; I don't want to have to copy the project for every build, I just want to change some variables before running the build so it uses new directories, source control paths, and version numbers.&nbsp; Everything else is the same.

Thanks in advance,

Josh

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 15, 2008, 1:23am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/2 "2008-12-15T01:23:43Z")

</div>

Hi Joshua   
  
 This looks like an oversight on our part. I will post a link to a build with a fix here when it is available (later today hopefully).

---

<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: [December 15, 2008, 2:36am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/3 "2008-12-15T02:36:58Z")

</div>

Great.&nbsp; Thanks Vincent.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 16, 2008, 11:26am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/4 "2008-12-16T11:26:49Z")

</div>

Hi Joshua   
  
 Here’s a build with the fix included :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1216.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1216.exe)

---

<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: [December 31, 2008, 2:56am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/5 "2008-12-31T02:56:29Z")

</div>

Thanks Vincent, this build fixed the problem.

---

<div class="post-metadata">

### Author: ![atraversi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b9e5f3/32.png) [@atraversi](https://www.finalbuilder.com/forums/u/atraversi)
#### Post date: [September 5, 2017, 3:14am UTC](https://www.finalbuilder.com/forums/t/include-finalbuilder-project-and-persistent-variables/1056/6 "2017-09-05T03:14:07Z")

</div>

Same problem in FinalBuilder 8.0.0.2116 Professional Edition  
What happened?  
  
Regards,  
Angel
