20 lines
440 B
PowerShell
20 lines
440 B
PowerShell
$keepConfig = 'R_Wikigames_Eng'
|
|
|
|
$projects = Get-Project -All
|
|
|
|
foreach ($proj in $projects) {
|
|
Write-Host "Elaborazione progetto: $($proj.Name)"
|
|
|
|
# ConfigurationManager (DTE)
|
|
$configMgr = $proj.ConfigurationManager
|
|
$configNames = $configMgr.ConfigurationRowNames
|
|
|
|
foreach ($cfg in $configNames) {
|
|
if ($cfg -ne $keepConfig) {
|
|
# remove config
|
|
Write-Host "- remove config: $cfg"
|
|
$configMgr.DeleteConfigurationRow($cfg)
|
|
}
|
|
}
|
|
}
|