Runtime Build and Publish (Reference): Commands for compiling solutions and creating deployment packages. Build validates scripts and displays, while Publish creates read-only production versions.
Access: Runtime → Build and Publish
The Build command compiles the solution’s script classes, script tasks, script expressions and displays, records the result of every object in the grid, and increments the build number. Four check boxes on the Build panel change what the build actually does.
All four options are stored with the solution, so the state you leave them in is the state you find in the next Designer session. By default all four are cleared. Every build also records the options it ran with in its Solution History entry, so you can tell later how a given build number was produced.
| Option | What it does | When to use |
|---|---|---|
| Save Backup | Copies the solution file before compilation starts and registers the build as a restore point in Solution History | Before upgrades, mass imports, or any build you may need to undo |
| Rebuild All | Ignores previous compile results and recompiles every object in the solution | Before publishing, after a version upgrade, or when results look inconsistent |
| Validate Displays | Opens and renders every display, then saves it back, so load-time problems become build errors | Before publishing, after a version upgrade, after mass symbol or template edits |
| Debug Information | Emits debug symbols and generated sources so the Script Debugger and breakpoints work | Development and troubleshooting only — leave cleared for production builds |
Designer compiles each script and display in the background as you edit and save it, so most objects already carry a compile result before you press Build. With all four boxes cleared, the build recompiles only:
Everything else is left untouched and counted in the Up-to-date figure of the build summary. This is the fast, everyday build.
Saves a backup copy of the solution file before the first object is compiled, so the backup always reflects the solution as it was going into the build, and marks the build entry in Solution History as having a backup. That entry is what you select to roll the solution back to this build.
Rebuilds the solution from scratch instead of only recompiling what is out of date. Besides compiling every script class, script task, script expression and display, it:
The first Rebuild All in a solution asks for confirmation, because it compiles everything and takes considerably longer than the default build. Use it before publishing, after upgrading a solution from a previous product version, after restoring or importing a solution, or whenever the reported build results look inconsistent with the configuration.
Goes beyond compiling the display code: the build opens each display, renders it off-screen, and saves it back. For every display this means:
This is the slowest option, since displays are loaded one at a time. Use it before publishing, after a version upgrade, and after mass edits to symbols or templates. The option is not available on EdgeGateway, which has no display runtime.
Makes the compiler emit debug symbols and the generated source files alongside the compiled assemblies in the build temp folder. This is what allows the Script Debugger to work:
Symbols are emitted anyway while a debugger is attached, whatever the check box says. Leave the option cleared for production builds: it adds time to every compile and leaves generated sources and symbols on disk. The check box is shown only where the Script Debugger is available.
Selects where the compiler writes its working files — generated sources, compiled assemblies and, when Debug Information is enabled, debug symbols.
| Option | Location |
|---|---|
| DesignerData |
|
| \ProgramData |
|
Build is automatic during development but manual build is useful for:
| Scenario | Purpose |
|---|---|
| Many changes made | Full validation |
| Assign build number | Version tracking |
| Pack database | Optimize storage |
| Before publishing | Final verification |
Creates read-only .dbrun file for production:
| Setting | Function | Result |
|---|---|---|
| Publish | Create deployment file | SolutionName_Version.dbrun |
| Version | Current version number | Auto-incremented |
| Next Increment | Version strategy | Major/Minor |
| Increment Type | Example | Use Case |
|---|---|---|
| Major | 1.0 → 2.0 | New features, breaking changes |
| Minor | 1.0 → 1.1 | Bug fixes, small updates |
Background compilation provides continuous validation:
| Status | Indicator | Action Required |
|---|---|---|
| Green | Success | None |
| Warning | Warning | Review recommended |
| Error | Error | Fix required |
Double-click any row with issues to navigate to source.
Suitable when:
Necessary for:
Warnings are informational:
Errors prevent execution:
| Extension | Type | Purpose |
|---|---|---|
| .dbsln | Solution file | Development version |
| .dbbak | Backup file | Build backup |
| .dbrun | Published file | Production deployment |
| Issue | Cause | Solution |
|---|---|---|
| Build fails | Script errors | Check error list |
| Publish disabled | Build errors exist | Fix all errors first |
| Large file size | No compression | Enable database packing |
| Version conflict | Manual edit | Use version controls |