|
|
|
@ -8,6 +8,7 @@ $version = $commonPropsXml.Project.PropertyGroup.Version
|
|
|
|
|
|
|
|
|
|
# Publish all packages
|
|
|
|
|
$i = 0
|
|
|
|
|
$errorCount = 0
|
|
|
|
|
$nugetUrl = "https://api.nuget.org/v3/index.json"
|
|
|
|
|
Set-Location $packFolder
|
|
|
|
|
|
|
|
|
@ -24,12 +25,19 @@ foreach($project in $projects) {
|
|
|
|
|
{
|
|
|
|
|
dotnet nuget push $nugetPackageName --skip-duplicate -s $nugetUrl --api-key "$apiKey"
|
|
|
|
|
Write-Host ("Deleting package from local: " + $nugetPackageName)
|
|
|
|
|
Remove-Item $nugetPackageName -Force
|
|
|
|
|
#Remove-Item $nugetPackageName -Force
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName)
|
|
|
|
|
Write-Host ("********** ERROR PACKAGE NOT FOUND: " + $nugetPackageName) -ForegroundColor red
|
|
|
|
|
$errorCount += 1
|
|
|
|
|
#Exit
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Write-Host "--------------------------------------------------------------`r`n"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($errorCount > 0)
|
|
|
|
|
{
|
|
|
|
|
Write-Host ("******* $errorCount error(s) occured *******") -ForegroundColor red
|
|
|
|
|
}
|
|
|
|
|