Revert "Modify Compile.ps1 Handling of Xaml to Improve Maintainability (#2701)"

This reverts commit 00668755c9.
This commit is contained in:
Chris Titus 2024-09-11 10:06:25 -05:00 committed by GitHub
parent 8e5fcceddb
commit 655324b927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,17 +93,11 @@ Get-ChildItem "config" | Where-Object {$psitem.extension -eq ".json"} | ForEach-
$script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" ))
}
# Read the entire XAML file as a single string, preserving line breaks
$xaml = Get-Content "$workingdir\xaml\inputXML.xaml" -Raw
$xaml = (Get-Content "xaml\inputXML.xaml").replace("'","''")
Update-Progress "Adding: Xaml " 90
# Add the XAML content to $script_content using a here-string
$script_content.Add(@"
`$inputXML = @'
$xaml
'@
"@)
$script_content.Add($(Write-output "`$inputXML = '$xaml'"))
$script_content.Add($(Get-Content "scripts\main.ps1"))