-
-
Notifications
You must be signed in to change notification settings - Fork 139
Script Integration
David Grochocki edited this page Nov 30, 2016
·
21 revisions
The power of XAML Styler is also wrapped in a small executable that can be integrated into build scripts, git commit templates, and more. Xstyler.exe is built on top of the same styling engine that powers the Visual Studio plugin, and can be configured by specifying an external configuration.
Standalone Download: XamlStyler.Console-2.3.0.zip
####Basic Usage####
./xstyler.exe -f "MainPage.xaml" -c "Config.json"
####Help####
XAML Styler #.#.#.#
Copyright c Xavalon 2016
-f, --files Required. XAML files to process.
-c, --config JSON file containing XAML Styler settings configuration.
-i, --ignore (Default: False) Ignore XAML file type check and process
all files.
-l, --loglevel (Default: Default) Levels in order of increasing detail:
None, Minimal, Default, Verbose, Debug
--help Display this help screen.
```
####Examples####
- [[PowerShell|PowerShell]] - Running xstyler.exe from Windows PowerShell.
- [[Command Prompt|Command Prompt]] - Running xstyler.exe from Windows Command Prompt.
- [[Git Bash|Git Bash]] - Running xstyler.exe from Git Bash.
- [[Git Hook|Git Hook]] - Integrate with your commit process to ensure XAML files are formatted before getting checked in.
<sub>**Have a useful recipe?** *Let us know, and we will add it to the Wiki for others to use in their projects.*</sub>