aboutcode-org / aboutcode-org/nuget-inspector

Version ranges lead to exception

未关闭
#68 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
5
派生
13
PR 合并指标
30 天内没有已合并 PR

描述

Hi there,

when a package version is defined as e.g. `[2.0.0]` this leads to an exception. This is already commented in the `LockFileHelper`:

```cs
/// See: https://github.com/NuGet/NuGet.Client/blob/538727480d93b7d8474329f90ccb9ff3b3543714/nuget-inspector/NuGet.Core/NuGet.LibraryModel/LibraryRange.cs#L68
/// FIXME: there are some rare cases where we have multiple constraints as in this JSON snippet for FSharp.Core:
/// "projectFileDependencyGroups": {
/// ".NETFramework,Version=v4.7.2": ["FSharp.Core >= 4.3.4 < 5.0.0",]
/// },
/// This a case that is NOT handled yet
```

I just opened this issue to track it. I'll open a PR right away.

Best regards,
G

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。