I recently archived a dotnet project that was posting a Nuget package to the Github package registry. I moved the library to a new Github repo in the same organization. How can I move this package from the archived repository to the new repository, so I can continue to publish it from the new location?
Any thoughts on this?
does anyone else need this?
Can you try the following:
- Download all versions of your .nupkg
- Make the original repository private
- Delete all package versions
dotnet tool install update gpr -g
gpr push *.nupkg --repository <OWNER/NEW_REPO>-k <PAT with repo, read:packages and write:packages scopes>
You can now publish new packages to the new
OWNER/NEW_REPO repository. If you don’t need to keep your old packages, you can skip steps 1, 4 and 5.
I hope that helps!