Back to Devexpress

Command Line Interface

wpfthemedesigner-401518-command-line.md

latest2.1 KB
Original Source

Command Line Interface

  • Dec 13, 2019
  • 2 minutes to read

The Theme Designer Command Line Interface (CLI) allows you to clone and export theme solutions. Use the CLI on a build server and then build the theme solution with msbuild.

Open CLI Folder

Use the CLI link in the Theme Designer’s About tab to open the CLI folder in the File Explorer.

Tip

tdcli.exe is in the %LocalAppData%\ThemeDesigner\app-<ThemeDesignerBuild>\CLI folder.

Commands

Export

Export the Theme Designer solution with embedded palette colors as a Visual Studio Solution. Use msbuild to build the exported theme solution.

export <source> <target>

Arguments

ArgumentAliasDescription
–source-sSpecifies the path to the Theme Designer solution file (.tdsln).
–target-tSpecifies the directory to which you want to export a theme. The target folder should be empty.

Clone

Clone the selected Theme Designer solution and assign a new name to the solution.

clone <name> <source> <target>

Arguments

ArgumentAliasDescription
–name-nSpecifies the name of the cloned theme.
–source-sSpecifies the path to the Theme Designer solution file (.tdsln).
–target-tSpecifies the directory to which you want to export a theme. The target folder should be empty.

Version

Outputs the ThemeDesigner CLI version.

Build a Theme

  1. Use the Export command to create a ready-to-build theme solution:

  2. Use the msbuild to create the theme assembly:

Tip

Topic : Apply a theme to an application

Rename a Theme

Use the Clone command to create a theme with the new theme name: