Compilation process

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

  1. Generate a PowerServer C# solution by copying templates from C:\Program Files (x86)\Appeon\Common\PSToolkit\[version]\NetBuild\AppTemplate.

  2. Update the PowerServer C# solution by using the project painter settings (such as auth template, app name, Kestrel port, license, cache etc.).

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

  4. Parse the embedded SQLs and create PowerServer C# models.

    PowerServer Toolkit (installed at C:\Program Files (x86)\Appeon\PowerBuilder [version]\Pstools by default) converts the embedded SQLs and static DataWindows to PowerServer C# models (.cs files) and deploys them to the PowerServer C# solution > "AppModels" project > [appname] > "ESql" and "Models" sub-folders respectively.

  5. Compile the PowerServer Web APIs from the solution.

  6. Analyze PowerScripts for unsupported features.

  7. Build the PBLs and re-generate the PBD files.

  8. Split the PBD files at object level.

  9. Uploads the runtime files, cloud app launcher, application files (PBD files, app executable file, external files etc.), and the compiled Web APIs to the server.

When you deploy a PowerServer project, the following happens:

  1. Update the PowerServer C# solution by using the project painter settings (such as auth template, app name, Kestrel port, license, cache etc.).

  2. Compile the PowerServer Web APIs from the solution.

  3. Uploads the runtime files, cloud app launcher, application files (PBD files, app executable file, external files etc.), and the compiled Web APIs to the server.