Skip to content

pacx solution generateLateBoundConstants

github-actions[bot] edited this page Apr 14, 2026 · 1 revision

Generates C# and/or JavaScript constants files from Dataverse metadata for a solution.

Aliases

pacx solution constants
pacx solution late-bound
pacx solution lateBound

Usage

Generate C# constants for a solution:

pacx solution constants --solutionName MySolution --outputCs "C:/src/Constants" --namespaceCs "MyApp.Constants"

Generate both C# and JavaScript constants:

pacx solution constants --solutionName MySolution --outputCs "C:/src/Constants" --namespaceCs "MyApp.Constants" --outputJs "C:/src/js/constants" --namespaceJs "MyApp"

Generate JS only, using the default solution:

pacx solution constants --outputJs "C:/src/js/constants" --namespaceJs "MyApp"

Arguments

Long Name Short Name Required? Description Default value Valid values
solutionName sn N The unique name of the solution to extract constants for. Uses the current default solution if omitted. - String
outputCs ocs N Output folder path for generated C# constants files. If omitted, no C# files are generated. - String
namespaceCs ncs N C# namespace for the generated constants classes. Required when --outputCs is specified. - String
outputJs ojs N Output folder path for generated JavaScript constants files. If omitted, no JS files are generated. - String
namespaceJs njs N JavaScript root namespace object for the generated constants. Required when --outputJs is specified. - String
jsHeader jsh N Header lines to prepend to each generated JavaScript file. Use \n to separate multiple lines. - String
withTypes wt N Include attribute type information in C# XML doc comments. True true, false
withDescriptions wd N Include attribute description in C# XML doc comments. True true, false

Command list

Clone this wiki locally