Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
346 B

$version = $args[0]
$folders = Get-ChildItem -Directory
foreach ($folder in $folders) {
$zipFile = "./" + $folder.Name + "-" + $version + ".zip"
if (Test-Path $zipFile) {
Remove-Item $zipFile
}
Compress-Archive -Path "$($folder.FullName)\*" -DestinationPath $zipFile
}
Write-Host "All templates have been zipped."