I’m looking to move all of our company’s NuGet packages to GPR; we’re migrating all our git repos into GitHub, so it makes sense to me to host all our artifacts in GitHub too.
However, I can’t currently see a way I can get all of the historical versions from our current, self-hosted (but otherwise standard) NuGet feed into the GitHub Package Registry.
What I’d like to do ideally, on a repo-by-repo basis, is:
- Migrate the Git repository into GitHub
- Point something at our current NuGet feed (or run a script) which will get all the versions of the package corresponding to that repository, and then push them to GPR
After some research, I found that there’s a Powershell module which would help if we wanted to migrate to Azure Artifacts, but before I try hacking about with that code or writing something from scratch myself, I thought it was worth asking here!
Is there anything like this available, or has anyone else scripted this yet?