If you are familiar with PowerShell and want to work with dependencies, try psake . What does it look like:
psake script.ps1:-------
properties {
$dbServer = 'sqlexpress'
...
}
task default -depend StopServer1, StopServer2
task StopS1 -depend MakeS1Backup, StopSqlServer1 {
...
}
task MakeS1Backup {
... make backup
}
task StopSqlServer1 {
stop-service ...
}
Then you can call it that (there are more options):
Invoke-Psake script.ps1
Invoke-Psake script.ps1 -task StopS1 #calls only StopS1 task and all other scripts it depends on
Invoke-Psake script.ps1 -task MakeS1Backup #only backups S1, it doesn't depend on anything else
- 1 ( StopS1), , StopS1. , S1 S1 Sql 1 ..
, msbuild, ( ).