Creating and Building a WPF Project

Use the WPF Project painter to define and test a WPF Window Application project.

  1. Create a WPF project, using one of these methods:
    • Use the WPF Window Application Target wizard to create a target and a project.
    • Use the WPF Window Application Project wizard to create a project.
    The project is generated with its basic properties defined.
  2. If you want change or add project properties, double-click the WPF project object In the Solution Explorer to open it in the Project painter.
  3. In the General tab, specify the name and location of the executable file to be generated, and the optional build options.
  4. In the Assemblies page, specify the output to be built from each PBL in the target library list:
    Option Description
    To generate an assembly containing the current row's PBL Choose or enter an assembly name.

    If you enter a new name instead of choosing an existing output assembly name, the new name is available in all other rows.

    To build more than one PBL to the same output assembly Specify the same assembly in multiple rows.
    To build a PBL to the application executable instead of an assembly Leave the assembly name blank.
    For example, for a library named pbexample.pbl, you might choose the pbexample.dll assembly name.
  5. Specify an assembly for global variables.
  6. Optionally, specify whether to create a resource-only assembly, and its name.
    Note: Before this feature was implemented, PowerBuilder automatically built a resource-only assembly containing all DataWindow, query, and pipeline objects. Now, you can specify the name of the resource-only assembly, or omit it from the build entirely.
  7. In the Dependencies page, examine a summary list of output assemblies that you defined in the Assemblies page.
    This read-only page shows a tree view of the output assemblies. The structure indicates dependencies among assemblies and the order in which they will be built.
  8. Click Check Dependencies in the WPF Project Painter Toolbar (or, in the context menu of the project object in the Solution Explorer). Any time you update the list of output assemblies, or refactor your scripts in such a way that affects dependencies, you should invoke the Check Dependencies command.
  9. To generate and deploy the output assemblies, click Full Build Project or Incremental Build Project in the WPF Project Painter toolbar.
  10. To run or debug your project after deploying it, click Run or Debug in the WPF Project Painter toolbar.