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\22.0\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. Compile the PowerServer Web APIs from the solution.

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

  5. Parse the embedded SQLs and create C# models.

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

  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.