select-xml

    6熱度

    1回答

    我正在使用Powershell使用csproj文件來執行項目引用的大規模編輯。到目前爲止,我已經成功地使用以下行ProjectReferences編輯的屬性包括: $projectXml = [xml](Get-Content $_.Project.FullName) Add-TfsPendingChange -edit $_.Project.FullName -ErrorAction

    8熱度

    2回答

    我試圖使用select-xml來從SharePoint解決方案中找出幾件事情。我有一個解決方案目錄,其中包含許多功能,而不是打開每個feature.xml並手動選擇功能的名稱並將它們放入列表中,我希望使用powershell和select-xml來執行相同的功能。 我嘗試去是這樣的: ls -recurse -filter feature.xml | select-xml "/Feature"

    1熱度

    2回答

    這裏是一塊XML文件,從中我想用PowerShell的代碼(這裏172.31.24.8)提取IP地址: <?xml version="1.0"?> <Configuration xmlns="http://www.tandberg.com/XML/CUIL/2.0" product="Cisco Codec" version="TC7.3.2.14ad7cc" apiVersion="2">