Skip to content

Fix namespaced XAML control binding #1

Fix namespaced XAML control binding

Fix namespaced XAML control binding #1

Workflow file for this run

name: Validate PowerShell and XAML
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Parse PowerShell
shell: pwsh
run: |
$errors = @()
Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ForEach-Object {
$tokens = $null
$parseErrors = $null
[System.Management.Automation.Language.Parser]::ParseFile($_.FullName, [ref]$tokens, [ref]$parseErrors) > $null
$errors += $parseErrors
}
if ($errors.Count -gt 0) {
$errors | Format-List
exit 1
}
- name: Validate XAML control bindings
shell: pwsh
run: ./tests/Validate-XamlBindings.ps1