[英]nuget install command line "Unable To Resolve Dependency" error
I'm running the following nuget install
command line command (indented for ease of reading)我正在运行以下
nuget install
命令行命令(为便于阅读而缩进)
nuget.exe install
"Microsoft.Azure.WebJobs.Extensions.OpenApi"
-Version 1.4.0 -Source [our internal feed source]
-Framework "net6.0"
-OutputDirectory "packages"
-NonInteractive
And it's reporting:它正在报告:
Unable to resolve dependency 'Microsoft.Azure.WebJobs.Script.Abstractions'
无法解决依赖关系“Microsoft.Azure.WebJobs.Script.Abstractions”
The package Microsoft.Azure.WebJobs.Script.Abstractions appears to exist when I browse to in in nuget package manager, and I'm using the the version of nuget.exe (6.2.1.2 at the time of writing). The package Microsoft.Azure.WebJobs.Script.Abstractions appears to exist when I browse to in in nuget package manager, and I'm using the the version of nuget.exe (6.2.1.2 at the time of writing).
The problem was that the dependency was a pre-release version.问题是依赖项是预发布版本。
Stipulating the -prerelease
command-line flag fixed this issue.规定
-prerelease
命令行标志修复了这个问题。
https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-install https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.