这个Nuget软件包来自哪里?

发布于 2025-02-05 16:17:23 字数 1545 浏览 1 评论 0原文

我有一个具有以下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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文