File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,18 +43,16 @@ jobs:
4343 - name : Patch SDK
4444 shell : pwsh
4545 run : |
46- $ns = @{msb="http://schemas.microsoft.com/developer/msbuild/2003"}
47-
4846 $map = @{
4947 "lib\foobar2000_sdk\libPPUI\libPPUI.vcxproj" = "../..;..;..\..\wtl\Include"
5048 "lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj" = "..\..\..\wtl\Include"
5149 }
5250
5351 foreach ($f in $map.Keys) {
5452 [xml]$x = Get-Content $f
55- $x.SelectNodes("//msb:AdditionalIncludeDirectories", $ns) | % {
56- $_.InnerText = $map[$f]
57- }
53+ $ns = New-Object System.Xml.XmlNamespaceManager($x.NameTable)
54+ $ns.AddNamespace("msb", "http://schemas.microsoft.com/developer/msbuild/2003")
55+ $x.SelectNodes("//msb:ClCompile/msb:AdditionalIncludeDirectories", $ns) | % { $_.InnerText = $map[$f] }
5856 $x.Save($f)
5957 }
6058
You can’t perform that action at this time.
0 commit comments