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"))