Nuget 服务器迁移到 TeamCity nuget 服务器



我正在停用我们环境中的旧服务器。 它的功能之一是充当 nuget 服务器。 有没有办法迁移旧 nuget 服务器中存在的包并将其移动到 TeamCity 的 nuget 服务器? 似乎没有办法将包从一个环境移动到另一个环境。 我在这里错过了什么吗?

NuGet 包只是扩展名为 .nupkg 的 zip 文件。在团队城市服务器上执行文件搜索,将它们复制到某个位置,或使用 nuget 命令行将它们就地推送到 NuGet 源。PoSh是这样的:

gci *.nupkg | % { nuget push $_.FullName -s http://sourceUrl -apiKey 'apiKey' }

最新更新