File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,16 +44,22 @@ jobs:
4444 shell : pwsh
4545 run : |
4646 $map = @{
47- "lib\foobar2000_sdk\libPPUI\libPPUI.vcxproj" = "../..;..;..\..\wtl\Include"
48- "lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj" = "..;..\..;..\..\..\wtl\Include"
47+ "lib\foobar2000_sdk\libPPUI\libPPUI.vcxproj" = "../..;..;..\..\wtl\Include;%(AdditionalIncludeDirectories) "
48+ "lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj" = "..;..\..;..\..\..\wtl\Include;%(AdditionalIncludeDirectories) "
4949 }
5050
5151 foreach ($f in $map.Keys) {
52- [xml]$x = Get-Content $f
52+ $filePath = Resolve-Path $f
53+
54+ [xml]$x = Get-Content $filePath
5355 $ns = New-Object System.Xml.XmlNamespaceManager($x.NameTable)
5456 $ns.AddNamespace("msb", "http://schemas.microsoft.com/developer/msbuild/2003")
55- $x.SelectNodes("//msb:ClCompile/msb:AdditionalIncludeDirectories", $ns) | % { $_.InnerText = $map[$f] }
56- $x.Save($f)
57+
58+ $x.SelectNodes("//msb:ClCompile/msb:AdditionalIncludeDirectories", $ns) | ForEach-Object {
59+ $_.InnerText = $map[$f]
60+ }
61+
62+ $x.Save($filePath)
5763 }
5864
5965 - name : Setup devcmd
You can’t perform that action at this time.
0 commit comments