这个Nuget软件包来自哪里?
我有一个具有以下packAgerference的项目:
<ItemGroup>
<PackageReference Include="SIL.LCModel.Utils" Version="10.2.0-*" />
</ItemGroup>
现在基于以下搜索,我希望Nuget根据需要将软件包解析为“ 10.2.0-NetCore0083”。
PM> Find-Package -AllVersions -source https://api.nuget.org/v3/index.json SIL.LCModel.Utils -IncludePrerelease -ExactMatch | foreach { $_.Versions } | Select-Object OriginalVersion
Time Elapsed: 00:00:01.1477577
OriginalVersion
---------------
10.2.0-netcore0083
10.2.0-beta0033
10.2.0-beta0032
10.2.0-beta0031
10.2.0-beta0027
10.2.0-beta0026
10.2.0-beta0025
10.2.0-beta0024
10.2.0-beta0023
10.2.0-beta0022
10.2.0-beta0011
10.2.0-beta0007
10.2.0-beta0006
10.2.0-beta0005
10.2.0-beta0004
10.2.0-beta0002
10.2.0-beta0001
10.1.0
但这是解决的:
PS C:\Users\joseph\source> dotnet list .\src\MyProject.csproj package
Project 'MyProject' has the following package references
[netstandard2.0]:
Top-level Package Requested Resolved
> SIL.LCModel.Utils 10.2.0-* 10.2.0-restorepacking0022
我已经清除了Nuget Caches,甚至为“ RestorePacking”进行了全驱动扫描,只是为了确定。这发生在本地和构建服务器上。我假设由于这里的第一个示例,而不是采取最新示例,但我真正的问题是:这个软件包来自哪里?
I've got a project with the following PackageReference:
<ItemGroup>
<PackageReference Include="SIL.LCModel.Utils" Version="10.2.0-*" />
</ItemGroup>
Now based on the below search, I expect Nuget to resolve the package to "10.2.0-netcore0083" as desired.
PM> Find-Package -AllVersions -source https://api.nuget.org/v3/index.json SIL.LCModel.Utils -IncludePrerelease -ExactMatch | foreach { $_.Versions } | Select-Object OriginalVersion
Time Elapsed: 00:00:01.1477577
OriginalVersion
---------------
10.2.0-netcore0083
10.2.0-beta0033
10.2.0-beta0032
10.2.0-beta0031
10.2.0-beta0027
10.2.0-beta0026
10.2.0-beta0025
10.2.0-beta0024
10.2.0-beta0023
10.2.0-beta0022
10.2.0-beta0011
10.2.0-beta0007
10.2.0-beta0006
10.2.0-beta0005
10.2.0-beta0004
10.2.0-beta0002
10.2.0-beta0001
10.1.0
But it's resolving to:
PS C:\Users\joseph\source> dotnet list .\src\MyProject.csproj package
Project 'MyProject' has the following package references
[netstandard2.0]:
Top-level Package Requested Resolved
> SIL.LCModel.Utils 10.2.0-* 10.2.0-restorepacking0022
I've cleared my nuget caches, even done a whole-drive sweep for "restorepacking" just to be sure. This happens locally and on the build server. I'm assuming it prefers this package over the "netcore0083" due to the first example here, as opposed to taking the latest, but my real question is: Where is this package coming from?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论