aboutcode-org / aboutcode-org/scancode-toolkit

NuGet: add support for extra manifests

未关闭
#1,584 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
new feature package scan package-formats
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

### Description
Beyond the base `.nuspec` manifest file there are several other files we should detect and report:

- `packages-config`: See https://docs.microsoft.com/en-us/nuget/reference/packages-config

This is an XML file and it mostly lists the dependencies of a project. This is a "legacy" format
It is somewhat related to the packages.lock.json too.
```xml


```

- `project.json` and `project.lock.json` See https://docs.microsoft.com/en-us/nuget/archive/project-json

This is a JSON file and mostly list dependencies though it can store some extra attributes . This is a "legacy" NuGet 3.x+ format. The lock file is also JSON.

```json
"dependencies": {
"Microsoft.NETCore": "5.0.0",
"System.Runtime.Serialization.Primitives": "4.0.10"
}
```

- `PackageReference` See https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files (therefore is XML)

It stores NuGet dependencies in the VS projects files directly under a PackageReference node.

```xml



```

Notes: Projects that use PackageReference do not use packages.config.

See also #648

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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