# Action Build Delphi, Namespace Prexies doesn't work with variables

**URL:** https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502
**Category:** Bugs
**Created:** [September 16, 2013, 7:39am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502 "2013-09-16T07:39:34Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![pedro.lopes](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@pedro.lopes](https://www.finalbuilder.com/forums/u/pedro.lopes)
#### Post date: [September 16, 2013, 7:39am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/1 "2013-09-16T07:39:34Z")

</div>

Action Build Delphi, Namespace Prexies doesn’t work with variables.   
  
 [IMAGE:486]   
  
 The result is always the default values (after check the config file generated .used).   
  
 Thanks,   
 Pedro Lopes

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 17, 2013, 2:06am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/2 "2013-09-17T02:06:21Z")

</div>

Hi Pedro,   
  
 We will look into this for you today. I haven’t been able to ascertain with a quick review of the application why this would be occurring. Most likely I am just missing something simple which will appear when I have a more detailed look. I will get back to you once I have looked through things.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 18, 2013, 9:15am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/3 "2013-09-18T09:15:01Z")

</div>

Hi Pedro,   
  
 For the namespaces we in the default ones for the framework type in all cases. If you wish to use a variable to specify these you will need to turn off the loading of compiler options form the project.

---

<div class="post-metadata">

### Author: ![pedro.lopes](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@pedro.lopes](https://www.finalbuilder.com/forums/u/pedro.lopes)
#### Post date: [September 18, 2013, 1:15am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/4 "2013-09-18T01:15:00Z")

</div>

I don’t see how can I turn off the loading of compiler options, can you help me?   
  
 Thanks,   
 Pedro Lopes

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 19, 2013, 1:03am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/5 "2013-09-19T01:03:45Z")

</div>

Hi Pedro,   
  
 On the project tab of the “Build Delphi” action, there is a check box called “Load Settings from Project File”. Below this are options for loading “Packages”, “Compiler”, “Linker”, “Directories”, and “Version Info”. Uncheck the option for “Compiler” will allow you to specify the namespace prefixes.

---

<div class="post-metadata">

### Author: ![pedro.lopes](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@pedro.lopes](https://www.finalbuilder.com/forums/u/pedro.lopes)
#### Post date: [September 27, 2013, 1:17am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/6 "2013-09-27T01:17:35Z")

</div>

I never had the “Load settings from project file” option checked!   
  
 Still not working.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [October 28, 2013, 4:44am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/7 "2013-10-28T04:44:48Z")

</div>

Hi Pedro,   
  
 What part is currently not working. As stated previously we always add in the default namespaces, however always list the ones given by the user first. Note that altering the compiler settings will automatically update the namespace prefix field with the default namespace prefixes. This is something to watch out for. Currently I have tested the action and everything is working as expected. Would you be able to provide more details on how this is not working for you?

---

<div class="post-metadata">

### Author: ![traptak](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/dec6dc/32.png) [@traptak](https://www.finalbuilder.com/forums/u/traptak)
#### Post date: [November 7, 2013, 12:04pm UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/8 "2013-11-07T12:04:49Z")

</div>

Hello,   
  
 I have the same problem with namespaces. I’m just begining to use DXE4 with FinalBuilder. Earlier for some years I used FinalBuilder with DXE. My test project compilation in FinalBuilder always ends with message: D:\Projects\NativeXML\trunk\Source\NativeXmlObjectStorage.pas(58) Fatal: F1026 File not found: ‘C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\lib\win32\release\Forms.dcu’   
 I have Load settings from project file/Compiler option unchecked and I want to this option be unchecked. All my Compiler settings are set in FinalBuilder script. But I want to get only namespaces info from Project settings. I think the best solution would be similar option like for search path: Always use Name spaces from Project Setting File.   
  
 best regards   
 Adam Siwon

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [November 7, 2013, 2:50am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/9 "2013-11-07T02:50:31Z")

</div>

Hi Adam,   
  
 I have put this request forward as a feature request. I will talk to the other developers here and see what we can achieve.

---

<div class="post-metadata">

### Author: ![traptak](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/dec6dc/32.png) [@traptak](https://www.finalbuilder.com/forums/u/traptak)
#### Post date: [November 7, 2013, 9:38am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/10 "2013-11-07T09:38:04Z")

</div>

Hi Jason,   
  
 thank you very much for your answer. Now I stop migration my projects to the Delphi XE4 and I will waiting for your decision.   
  
 best regards   
 Adam Siwon

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [November 7, 2013, 11:29am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/11 "2013-11-07T11:29:21Z")

</div>

Hi Adam,   
  
 Having a talk here with other developers it sounds like potentially a path or framework issue. To narrow it down some more having access to your .cfg file generated during the build in Finalbuilder will be a great help.   
  
 To get this file turn on the the “Keep generated .cfg file” in the “Compiler” options tab. The cfg will be located in the same directory as the project being built and will have the extra extension of .used added to it (e.g. “MyProject.cfg.used”). If you could send that through to support with a reference to this forum post I will track this further for you.   
  
 Pedro, if your script is also still having issues please feel free to do the same.   
  
 Thanks.

---

<div class="post-metadata">

### Author: ![traptak](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/dec6dc/32.png) [@traptak](https://www.finalbuilder.com/forums/u/traptak)
#### Post date: [November 8, 2013, 9:49am UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/12 "2013-11-08T09:49:26Z")

</div>

Hi Jason,   
  
 I sent you requested files.   
  
 best regards   
 Adam Siwon

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [November 11, 2013, 12:07pm UTC](https://www.finalbuilder.com/forums/t/action-build-delphi-namespace-prexies-doesnt-work-with-variables/3502/13 "2013-11-11T12:07:59Z")

</div>

Hi Adam,   
  
 From what I can see changing the framework on the build action to VCL will add the missing namespaces.   
  
 Let me know how that goes for you.
