Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Build and publish your solution.

Reference → Solution → RuntimeUIStartup | Build and Publish | Execution Profiles | Monitor


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

Table of Contents
maxLevel2
minLevel2
indent10px
excludeSteps
stylenone


Build Operations

Build Process

The Build feature compiles displays and scripts for final verification:

OptionFunctionWhen to Use
BuildExecute compilationBefore deployment
Save BackupCreate .dbbak fileMajor changes
Rebuild AllComplete recompilationFull validation
Validate DisplaysCheck UI componentsDisplay changes

Build Settings

SettingOptionsPurpose
Temp FolderDesigner Settings / ProgramDataWorkspace management
Debug InformationInclude debug dataDevelopment troubleshooting

Temp Folder Locations:

  • Designer Settings: SolutionPath\DesignerSettings\
  • ProgramData: \ProgramData\FrameworX\

When to Build

Build is automatic during development but manual build is useful for:

ScenarioPurpose
Many changes madeFull validation
Assign build numberVersion tracking
Pack databaseOptimize storage
Before publishingFinal verification

Build Process Steps

  1. Navigate to Runtime → Build and Publish
  2. Select Rebuild All and Validate Displays
  3. Click Build
  4. Review build results
  5. Fix any errors shown

Publish Operations

Publish Process

Creates read-only .dbrun file for production:

SettingFunctionResult
PublishCreate deployment fileSolutionName_Version.dbrun
VersionCurrent version numberAuto-incremented
Next IncrementVersion strategyMajor/Minor

Version Management

Increment TypeExampleUse Case
Major1.0 → 2.0New features, breaking changes
Minor1.0 → 1.1Bug fixes, small updates

Build Status

Background compilation provides continuous validation:

StatusIndicatorAction Required
GreenSuccessNone
WarningWarningReview recommended
ErrorErrorFix required

Double-click any row with issues to navigate to source.


Build vs Publish

Build Only

Suitable when:

  • Continuous development expected
  • Frequent field changes
  • Development environment
  • Testing iterations

Publish Required

Necessary for:

  • Regulated industries
  • Locked production systems
  • Version control
  • Read-only deployment

Validation Results

Warning Types

Warnings are informational:

  • Won't stop execution
  • May indicate potential issues
  • Should be reviewed

Error Types

Errors prevent execution:

  • Script won't run
  • Display won't load
  • Must be fixed

Best Practices Checklist 

Development Phase

  • Use automatic background compilation
  • Fix errors as they appear
  • Don't build unnecessarily

Pre-Production

  • Run full build with all options
  • Fix all errors
  • Review warnings
  • Create backup

Production Deployment

  • Final build and validation
  • Set version number
  • Publish solution
  • Archive .dbrun file

File Types

ExtensionTypePurpose
.dbslnSolution fileDevelopment version
.dbbakBackup fileBuild backup
.dbrunPublished fileProduction deployment

Troubleshooting

IssueCauseSolution
Build failsScript errorsCheck error list
Publish disabledBuild errors existFix all errors first
Large file sizeNo compressionEnable database packing
Version conflictManual editUse version controls



In this section...

Page Tree
root@parent



  

Overview

As you do the Solution Configuration, the system automatically compiles Scripts and Displays, with no user intervention. 

In specific situations, like preparing the solution for Deployment, or creating a solution backup, or just wanting to have a deeper validation, this page provides the following optional commands:

Build: compile and verify Scripts and Displays, apply a Build Number to facilitate version control.

Publish: create a read-only copy of the Solution for deployment in controlled areas.

On this page:

Table of Contents
maxLevel3
stylenone

Image Removed

Build

The Build feature compiles the solution's displays and scripts for final verification before production deployment. It ensures thorough validation of the application's scripts and components as part of production preparation. Additionally, after each Build, the software logs an event in the Solution History, allowing the solution to be rolled back to its post-build state.

During development, this process is unnecessary, as modifications are automatically and transparently compiled in the background while editing the solution.

Field

Description

Build

Executes the build process for final verification before deployment. Use this command to ensure all scripts and components function correctly. This command generates a build number and logs the event in the Solution History.

Save Backup

When checked, this option creates a backup copy of the build with the .dbbak extension. This feature allows users to restore the previous state if needed.

Rebuild All

Initiates a complete rebuild of all components in the solution. Use this option to ensure that all changes are compiled together, regardless of prior modifications.

Validate Displays

Runs validation checks on all display components within the solution. This step confirms that all user interfaces meet the necessary standards before deployment.

Temp Folder

Specifies the location for temporary files created during the build process. This folder helps manage workspace and storage during compilation.

The Temp Files options \Designer Settings means the temporary folder will be created in the DesignerSettings folder, located in the same path as the solution is \ProgramData means the temporary folder will be created inside the \ProgramData\FrameworX\ folder

Debug Information

Enables the inclusion of debugging data in the build. The user must also enable Debug in the Trace Window Settings dialog.

Note

Executing a Build is useful for achieving complete verification of an application's logic when it is being prepared for final production, but it is not necessary during the development process. Any modifications you make on a solution are automatically and transparently compiled in the background while you are editing. 

Publish

After clicking the “Publish” button, a read-only protected version of the solution suitable for safe deployment on the field is created. This new version will have the same name as the Solution followed by its version number and will be of the .dbrun format.

Field

Description

Publish

Initiates the publishing process, saving content to the specified version. Confirms that all changes have been completed and content is ready for release to users.

Publish as Version: 1.0

Displays the version in which the content will be published. Allows users to verify the assigned version before publishing. The version number is typically generated automatically based on the selected version increment settings.

On Next Version Increment options

Displays options for defining the next version increment. Guides users to select either a major or minor update for future releases, ensuring version tracking and management.

Major number

Sets the next version increment to a major release. Selecting this option applies a significant version update, indicating broad changes or new features, for example, advancing from version 1.0 to 2.0.

Minor number

Sets the next version increment to a minor release. Selecting this option applies a smaller version update, representing adjustments or incremental enhancements, such as moving from version 1.0 to 1.1.

The platform constantly compiles the modules you edit in the background and validates all scripts and displays. If you have not run a full build, the BuildStatus column reflects any warnings or errors found during the background compile process.

If a row has a red X, double-click it to go to the source of the warning or error. Warnings are informational and do not stop the script from running. Errors prevent the specified script from running but do not affect the whole application. Even if a script or display has a warning, it will still run.

Periodically, you should run a full build:

  • When you have made many changes and you want full validation and to recompile the whole solution.
  • When you want to assign a build number to a version.
  • When you want to pack the database. 
  • When you are getting ready to publish, that is, create the read-only runtime application.

To run a Full Build:

  1. Go to  Runtime / Build and Publish.
  2. Select the Rebuild All and Validade Displays options.
  3. Click Build.

It is NOT necessary to publish the solution to install it for production. If the solution is expected to have continuous changes when in the field, it is easier to put the main file (.dbsln) directly on the production computer.

The main benefit of publishing is that the system creates a compact and read-only version of the solution file, allowing the system to comply with regulated industries.

In this section:

Page TreerootV10:@parentspacesV10