Upload historic NuGet packages without RepositoryUrl #24920
-
We would like to upload historic NuGet packages from our current package store to GitHub Packages. This would allow us to e.g. build hotfixes for older (but still supported) releases in GitHub Actions without having to first upgrade package dependencies and fix breaking changes. Unfortunately, we can’t upload those old
How can we upload historic NuGet packages? Two potential solutions come to mind: a change in GitHub Packages to no longer require |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @MaxHorstmann,
MaxHorstmann:
I’ve written a .NET Core tool for working with the GitHub Package Registry, that can be used to upload historic NuGet packages. You can install the tool like this:
When pushing a package, you can provide a
You can also do a batch upload like this:
(Your PAT will need the You can find more information about the tool here: github.comjcansdale/gprA .NET Core tool for working with the GitHub Package Registry Please let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
-
Outstanding- thank you very much! 👏 |
Beta Was this translation helpful? Give feedback.
Hi @MaxHorstmann,
I’ve written a .NET Core tool for working with the GitHub Package Registry, that can be used to upload historic NuGet packages.
You can install the tool like this:
When pushing a package, you can provide a
RepositoryUrl
(like you suggested). You can use it like this:You can also do a batch upload like this:
(Your PAT will need the
repo
andread:packages
scopes)You can find more information about the tool here:
github.comjcansdale/gpr
A .N…