dotnet restore -s参数顺序

时间:2018-07-26 05:27:34

标签: linux nuget .net-core-2.1

我们的开发平台是Linux上的dotnet core 2.1。

我们有两个nuget存储库,用于从(nuget.internal)中选择nuget,一个内部存储在LAN上,一个外部存储库(nuget.org)。 我们还计划将nuget.org软件包缓存在内部存储库中,但仍希望包括nuget.org,以防万一缓存未命中。

我们如何确保搜索顺序是nuget.internal首先是nuget.org?

换句话说

dotnet restore -s <nuget.internal> -s <nuget.org> blah blah

vs

dotnet restore -s <nuget.org> -s <nuget.internal> blah blah

对搜索顺序有什么影响?

The official documentation只是说

  

在还原过程中,NuGet会使用第一个来源中的哪个软件包首先响应请求来忽略软件包源的顺序。

提出这个问题。

0 个答案:

没有答案