Can I move a nuget package to a new repository? #26090
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
does anyone else need this? |
Beta Was this translation helpful? Give feedback.
-
Hi @derekssmith,
derekssmith:
Can you try the following:
You can now publish new packages to the new I hope that helps! |
Beta Was this translation helpful? Give feedback.
Hi @derekssmith,
Can you try the following:
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!