即使可用范围内的版本,nuget restore仍找不到软件包的版本

时间:2019-10-10 01:08:02

标签: package nuget version restore

Visual Studio 2019
.NET Core 2.2.0

运行Visual Studio > Solution Explorer > Restore NuGet Packages或命令行nuget restore时,会输出许多找不到所需软件包版本的错误。

这是一个例子:

Unable to find package System.Runtime.Extensions with version (>= 4.3.0)
  - Found 2 version(s) in MyFeed [ Nearest version: 4.3.1 ]

我们的开发环境是受限的环境,无法访问互联网。

MyFeed是一个网络文件夹,我们在其中存储项目所依赖的所有软件包版本。

以下是相关内容:

/system.runtime.extensions
  /4.0.10
  /4.3.1

程序包版本约束为System.Runtime.Extensions >= 4.3.0 那么为什么nuget restore不能将4.3.1识别为合格的软件包版本?

是否存在我不知道的NuGet.config设置会禁用依赖项版本范围内的匹配?

0 个答案:

没有答案
相关问题