Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 2.29 KB

README.md

File metadata and controls

63 lines (43 loc) · 2.29 KB

NugetUnlister

Project state

.GitHub GitHub issues NuGet version (NugetUnlister) NuGet version (NugetUnlister)

Usage

list commands

  • nuget-unlist list any [YOUR PACKAGE NAME]
  • nuget-unlist list pre [YOUR PACKAGE NAME] [0.1.3]
  • nuget-unlist list rel [YOUR PACKAGE NAME] [0.1.3]
  • nuget-unlist list like [YOUR PACKAGE NAME] REGEXPATTERN

drop commands

  • nuget-unlist drop any [YOUR PACKAGE NAME] [0.1.3] [APIKEY] [Source of nuget repository]
  • nuget-unlist drop pre [YOUR PACKAGE NAME] [0.1.3] [APIKEY] [Source of nuget repository]
  • nuget-unlist drop rel [YOUR PACKAGE NAME] [0.1.3] [APIKEY] [Source of nuget repository]
  • nuget-unlist drop like [YOUR PACKAGE NAME] REGEXPATTERN

Sample Usage in CI

& dotnet tool install --global NugetUnlister

$packageVersion = Get-ChildItem -Recurse -Filter '*.nupkg' | select { $_.Name } -ExpandProperty Name -First 1 | Select-String -Pattern "\d[\d\w\.\+-]+(?=.nupkg)" | %{$_.Matches.Value}

& nuget-unlist drop pre [YOUR PACKAGE ID] $packageVersion $(nugetApiKey)

Breaking changes

Version 1.x.x

  • call syntax has been changed for most commands to simplify common execution scenarios as mentioned in #5

Version 2.0.0

  • This is now a .net 5.0 tool

Version 3.0.0

  • This is now a .net 6.0, 7.0, 8.0 tool
  • major refactoring that also fixes interaction with the service index

Release Information

Version 2.1.0

  • Implementation change to use System.CommandLine to provide tab completion for CLI usage.

Version 2.2.0

  • nuget-unlist list like
  • nuget-unlist drop like

Version 2.2.1

  • Crosscompile as NET 5,6,7 so this works in CI without installing older versions of .NET

Version 2.2.2

  • Fixes to properly respect the --source option

Version 3.0.1

  • Fixed issue with packages that have a large number of metadata items (#36)