From 655324b927f5c3778701f035dec87972600442fd Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 11 Sep 2024 10:06:25 -0500 Subject: [PATCH] Revert "Modify `Compile.ps1` Handling of Xaml to Improve Maintainability (#2701)" This reverts commit 00668755c94c8c16c5210afa913c69aa4583fccb. --- Compile.ps1 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Compile.ps1 b/Compile.ps1 index 83be2406..b7a61558 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -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"))