You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the current version of an assembly is -- eg. 0.0.553 -- and I issue commands to delete/unlist previous versions (ie all versions up to 0.0.530), then I would expect to still see listed those in between 0.0.530 and 0.0.553
What I get instead is the following:
) SIgn in to Nuget
*) Go check My Packages
*) I see the assembly XAct.Core
*) BUT:
*) I see *all versions now listed under "Unlisted"
*) With versions up to 0.0.530 marked as Listed=No
*) With versions between 0.0.530 and current version marked as Listed=Yes, but under "Unlisted"
That said, although listed under "Unlisted", the latest version is still downloadable. That at least is good news, or this whole office would grind to a halt.
Thanks for looking into this!
PS: The account in question is "xact", and one of the assemblies that shows this behaviour is "XAct.Core" (although just about any "XAct.xxx" one will show this behaviour).
PPS: As for how I was deleting the older assemblies, the script I used to cleanup my old assemblies is listed below, but as far as I can tell from the documentation of the delete command, there is no reason that Deleting older version should also unlist the whole package.
Powershell script used to mass unlist assemblies up to certain version:
We've unlisted packages both manually and by way of our own PS scripts and have not seen this behavior - if you can provide a repro that isolates the NuGet-specific issues from possible script-specific issues, we'll be happy to take another look.
Hi just came across something else.
If the current version of an assembly is -- eg. 0.0.553 -- and I issue commands to delete/unlist previous versions (ie all versions up to 0.0.530), then I would expect to still see listed those in between 0.0.530 and 0.0.553
What I get instead is the following:
) SIgn in to Nuget
*) Go check My Packages
*) I see the assembly XAct.Core
*) BUT:
*) I see *all versions now listed under "Unlisted"
*) With versions up to 0.0.530 marked as Listed=No
*) With versions between 0.0.530 and current version marked as Listed=Yes, but under "Unlisted"
That said, although listed under "Unlisted", the latest version is still downloadable. That at least is good news, or this whole office would grind to a halt.
Thanks for looking into this!
PS: The account in question is "xact", and one of the assemblies that shows this behaviour is "XAct.Core" (although just about any "XAct.xxx" one will show this behaviour).
PPS: As for how I was deleting the older assemblies, the script I used to cleanup my old assemblies is listed below, but as far as I can tell from the documentation of the delete command, there is no reason that Deleting older version should also unlist the whole package.
Powershell script used to mass unlist assemblies up to certain version:
$xml = xml;
$packageNodes = $xml.SelectNodes("/packages/package");
$packageNameList = New-Object "System.Collections.ObjectModel.Collection[System.String]"
foreach ($_ in $packageNodes) { $packageNameList.Add($_.innerText)}
Write-Host("....");
foreach($package in $packageNameList){
Write-Host ($package);
$i=50;
$iMax=530;
$apiKey="...........";
While ($i -le $iMax)
{
c:\ProgramFiles\Nuget\Nuget delete $package 0.0.$i -ApiKey $apiKey -NoPrompt
$i +=1;
}
}
referring back to a file of the following format:
The text was updated successfully, but these errors were encountered: