简体   繁体   English

将多个相互依赖的.NET Core程序包上传到NuGet的最佳方法?

[英]Best way to upload multiple .NET Core packages with dependencies to each other to NuGet?

I have .NET Core C# class library projects that I want to upload to NuGet available here . 我有我要上传来的NuGet .NET核心C#类库项目可以在这里找到

Some of these packages depend on others from the solution. 其中一些软件包依赖于解决方案中的其他软件包。 For example MyTested.AspNetCore.Mvc depends on MyTested.AspNetCore.Mvc.Core. 例如,MyTested.AspNetCore.Mvc取决于MyTested.AspNetCore.Mvc.Core。

Since there is slight delay of indexing when uploading a package to NuGet how can I overcome the following problem: 由于将包上传到NuGet时索引编制会稍有延迟,我该如何解决以下问题:

  1. I start uploading packages (CI or manual) 我开始上传软件包(CI或手册)
  2. 3 of 9 (or more) packages are already uploaded but the rest are still missing 9个(或更多)软件包中的3个已经上传,但其余的仍然缺失
  3. While I upload them, someone tries to download a package but its dependencies are not indexed yet 当我上传它们时,有人尝试下载一个软件包,但尚未对其依赖项建立索引
  4. He receives an error that a package is missing 他收到一个错误,提示缺少包裹

What are my best options here? 我最好的选择是什么?

Should I upload the packages starting from the lowest dependent package and finishing with the most dependent one? 我应该从最低依赖包开始到最高依赖包上传吗? Since the number of packages may increase in the future, this may become quite tedious work to manage. 由于软件包的数量将来可能会增加,因此这可能变得非常繁琐的管理工作。

Should I unlist all packages untill they are all uploaded and then list them at once? 我是否应该取消列出所有程序包,直到它们全部上传,然后立即列出它们?

Anything else as solution? 还有什么解决方案吗? I wonder how Microsoft is doing with .NET Core and ASP.NET Core where they have hundreds of packages depending on each other. 我不知道Microsoft如何使用.NET Core和ASP.NET Core,它们之间有数百个相互依赖的软件包。

我相信(从社区立场出发),该团队将所有软件包上传到未列出状态,然后轻按开关以将其列出/编入索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Nuget .NET 核心中的依赖关系 - Nuget Dependencies in .NET Core .Net / VisualStudio如何处理具有相同nuget包的项目依赖项,每个项目具有不同的nuget目标 - How .Net/VisualStudio handles having projects dependencies each with different nuget target for same nuget packages 让多个 .NET 应用程序相互通信的最佳方式 - Best way to let multiple .NET apps communicate with each other 如何在.NET Core中将第三方nuget包(依赖项)全局部署到服务器? - How to deploy third party nuget packages (dependencies) globally to the server in .NET Core? 恢复nuget包的最佳方法是什么? - What is the best way to restore nuget packages? 我的 NuGet 包是否与 .NET Core 兼容? - Are my NuGet packages compatible with .NET Core? 搜索.NET Core或标准NuGet包 - Search for .NET Core or Standard NuGet packages ASP.NET Core - 减少业务服务依赖的最佳方法 - ASP.NET Core - Best way to reduce dependencies in business services .NET 核心依赖项的 Nuget 包还原路径 - Nuget package restore path for .NET core dependencies NuGet将项目依赖项打包为nuget依赖项 - NuGet packages project dependencies as nuget dependencies
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM