build-library

Builds the specified library into a binary.

To build a library from the CLI, use the following syntax:

        
          gwebcli.exe build-library -p <relative or absolute location of the project> -n <name of the library> -t
      

For example:

        
          gwebcli.exe build-library -p "C:\G Web Projects\Project.gwebproject" -n "Library.gcomp" -t
      
Note To use the build-library operation, the build machine must have the G Web Development Features for TestStand licenses.
The following table lists the available arguments for this operation.
Argument Required Description Example
  • -p
  • --path=VALUE
Yes Specifies the relative or absolute path of the project containing the library to build.
  • -p "C:\G Web Projects\Project.gwebproject"
  • --path="C:\G Web Projects\Project.gwebproject"
  • -n
  • --name=VALUE
Yes Specifies the name of the library to build.
  • -n "Library.gcomp"
  • --name="Library.gcomp"
  • -t
  • --target=VALUE
This argument is required if the project contains SystemDesigner Web Server targets. Specifies the SystemDesigner Web Server target that contains the library to build.

You can view Web Server targets you added to SystemDesigner by opening the library in the editor and clicking the Select target drop down.

  • -t "Default Web Server"
  • --target="Default Web Server"
  • -s
  • --save
No Saves the library and project file after building.

Use this argument when you select Auto-increment version on build in the library.