Compilation process

You can build and deploy the project by clicking the Build & Deploy Project button (), or deploy only by clicking the Deploy Project button () in the toolbar.

Build & deploy process

When you build & deploy a PowerServer project, the following happens:

  1. Generate PowerServer C# solution

    Copy templates from C:\Program Files (x86)\Appeon\Common\PSToolkit\[version]\NetBuild\AppTemplate

  2. Apply project settings to solution

    Update the generated solution using settings from the Project Painter (e.g., authentication template, application name, Kestrel port, license, cache settings, etc.).

  3. Parse DataWindow and SQLs

    DataWindow controls and DataStore objects: Parse and create PowerServer C# models.

    Embedded SQLs: Parse and create PowerServer C# models.

    For more, refer to the next section: PowerServer C# models.

  4. Compile Web APIs

    Configure or update the PowerServer Web APIs compilation environment.

    Build the PowerServer Web APIs from the updated solution.

  5. Analyze PowerScript

    Identify and report any unsupported features.

  6. Build and process PBLs

    Compile PowerBuilder libraries (PBLs) and generate PBD files, application executable, application files etc.

    Split PBD files at the object level for deployment optimization.

  7. Upload files to server

    Upload the following files and settings to the target server:

    • Runtime files

    • Cloud app launcher

    • Application files (PBD files, app executable file, external files, apprun.json etc.)

    • Compiled Web APIs

    • Setting such as runtime file list, Web API URL, versions etc.

Deploy process

When you deploy a PowerServer project, the following happens:

  1. Apply project settings to solution

    Update the solution using settings from the Project Painter (e.g., authentication template, application name, Kestrel port, license, cache settings, etc.).

  2. Compile Web APIs

    Build the PowerServer Web APIs from the updated solution.

  3. Upload files to server

    Upload the following files and settings to the target server:

    • Runtime files

    • Cloud app launcher

    • Application files (PBD files, app executable file, external files, apprun.json etc.)

    • Compiled Web APIs

    • Setting such as runtime file list, Web API URL, versions etc.