Sha256: 7d7a03192270dc50e262d286dbbb000a449dae0a80cc2ac0edbee953fd733574

Contents?: true

Size: 1.06 KB

Versions: 52

Compression:

Stored size: 1.06 KB

Contents

# NuGet

The NuGet source will detect ProjectReference-style restored packages by inspecting `project.assets.json` files for dependencies. It requires that `dotnet restore` has already ran on the project.

The source currently expects that `source_path` is set to the `obj` directory containing the `project.assets.json`.
For example, if your project lives at `foo/foo.proj`, you likely want to set `source_path` to `foo/obj`.
If in MSBuild you have customized your `obj` paths (e.g. to live outside your source tree), you may need to set `source_path` to something different such as `../obj/foo`.

### Search strategy
This source looks for licenses:
1. Specified by SPDX expression via `<license type="expression">` in a package's `.nuspec` (via licensee)
2. In license files such as `LICENSE.txt`, even if not specified in the `.nuspec` (via licensee)
3. Specified by filepath via `<license type="file">` in a package's `.nuspec`, even if not a standard license filename.
4. By downloading and inspecting the contents of `<licenseUrl>` in a package's `.nuspec`, if not found otherwise.

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
licensed-5.0.0 docs/sources/nuget.md
licensed-4.5.0 docs/sources/nuget.md
licensed-4.4.0 docs/sources/nuget.md
licensed-4.3.1 docs/sources/nuget.md
licensed-4.3.0 docs/sources/nuget.md
licensed-4.2.0 docs/sources/nuget.md
licensed-4.1.0 docs/sources/nuget.md
licensed-4.0.4 docs/sources/nuget.md
licensed-4.0.3 docs/sources/nuget.md
licensed-4.0.2 docs/sources/nuget.md
licensed-4.0.1 docs/sources/nuget.md
licensed-4.0.0 docs/sources/nuget.md
licensed-3.9.1 docs/sources/nuget.md
licensed-3.9.0 docs/sources/nuget.md
licensed-3.8.0 docs/sources/nuget.md
licensed-3.7.5 docs/sources/nuget.md
licensed-3.7.4 docs/sources/nuget.md
licensed-3.7.3 docs/sources/nuget.md
licensed-3.7.2 docs/sources/nuget.md
licensed-3.7.1 docs/sources/nuget.md