The PBNet conversion tool is Windows executable. Get in touch with the team to get an appropriate build of the tool.
A simple migration could be performed using just the -i and -o command line arguments.
A PowerBuilder project is expected to be composed of a group of PB libraries (.PBL files) and assets such as images and configuration files. An important element to tie everything together is the target file (a .PBT file).
For example, say that the project to be converted is located in the path C:\pbprojects\testproject1 . For a very simple project the contents of this directory may have something like this:
This is a simple project that when executed shows a simple window like this:
The current version of the conversion tool must be executed from the command line. The current directory must be the directory where the tool Mobilize.PBNetMAP.ConversionTool.exe was copied. For example:
The -i command line argument is used to specify the path where the target file (testproject1.pbt) is located. The -o command line argument is used to specify the output directory . This path is going to have the converted C# project.
[2020.02.21 16:14:06] Finish Generation of Migrated Code
[2020.02.21 16:14:06] Finish Migration
While running, the conversion tool shows many internal execution messages.
The generated project
The output folder looks like this:
This output folder contains log files(ConversionTool.Log...txt), temporary migration folders (repository) and the generated C# solution in MigratedSolution.
The MigratedSolution contains one C# project (.CSPROJ) and directory per PowerBuilder library (.PBL) . Two additional projects are created for each migration:
AllInterfaces.csproj contains interfaces for class definitions in all the libraries of the solution
testproject1Site.csproj contains the website for the converted application.
Executing the converted project
Two steps need to be performed for executing the converted project.
1. Compile the frontend
The compilation of the frontend components need to be executed from the command line. First run the yarn install command to install all the required third party packages (including Angular, Kendo UI, etc). Then compile the code using ng build.