20 lines
477 B
PowerShell
20 lines
477 B
PowerShell
$keepConfigs = @('R_Wikigames_Eng', 'D_Wikigames_Eng')
|
|
|
|
$projects = Get-Project -All
|
|
|
|
foreach ($proj in $projects) {
|
|
Write-Host "Project: $($proj.Name)"
|
|
|
|
# ConfigurationManager (DTE)
|
|
$configMgr = $proj.ConfigurationManager
|
|
$configNames = $configMgr.ConfigurationRowNames
|
|
|
|
foreach ($cfg in $configNames) {
|
|
# remove config if not in keepConfigs
|
|
if ($cfg -notin $keepConfigs) {
|
|
Write-Host "- remove config: $cfg"
|
|
$configMgr.DeleteConfigurationRow($cfg)
|
|
}
|
|
}
|
|
}
|