mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 20:42:50 -05:00
tools: remove-all-arm64
Add script to remove ARM64 project configurations for builds on VS2015
This commit is contained in:
20
tools/gensrc/remove-vcxproj-config.ps1
Normal file
20
tools/gensrc/remove-vcxproj-config.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
param (
|
||||
[Parameter(Mandatory)][string]$Path,
|
||||
[Parameter(Mandatory)][string[]]$ProjectConfiguration
|
||||
)
|
||||
|
||||
$file = Get-Item $Path
|
||||
|
||||
$xmlob = New-Object xml
|
||||
$xmlob.PreserveWhitespace = $true
|
||||
$xmlob.Load($file.FullName)
|
||||
|
||||
$xmlns = @{"msbuild" = "http://schemas.microsoft.com/developer/msbuild/2003"}
|
||||
$configs = Select-Xml -Xml $xmlob -Namespace $xmlns `
|
||||
-XPath "//msbuild:ProjectConfiguration[contains(@Include,'$ProjectConfiguration')]"
|
||||
foreach ($config in $configs) {
|
||||
$child = $config.Node
|
||||
[void]$child.ParentNode.RemoveChild($child)
|
||||
}
|
||||
|
||||
$xmlob.Save($file.FullName)
|
Reference in New Issue
Block a user