Я не думаю, что есть функция для запуска задачи n
раз, но здесь есть обходной путь для многократного запуска сборки (сценарий PowerShell):
$times = 30
For ($i=1; $i =lt $times; $i++) {
Write-Host "*** Start to build $i time ***"
# I use VS 2019 Enterprise, change the path if you have another version
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Currnet\Bin"
# Change the folder/sub folder to your solution path
./msbuild.exe "$(Build.SourcesDirectory)\{your soultion name}.sln"
}