简体   繁体   中英

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 .

Some of these packages depend on others from the solution. For example MyTested.AspNetCore.Mvc depends on MyTested.AspNetCore.Mvc.Core.

Since there is slight delay of indexing when uploading a package to NuGet how can I overcome the following problem:

  1. I start uploading packages (CI or manual)
  2. 3 of 9 (or more) packages are already uploaded but the rest are still missing
  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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM