Skip to content

Commit

Permalink
docs: add info about nested nuget ignorePaths in nuget usage
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Dec 10, 2024
1 parent c9521db commit 3a1deef
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/usage/nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@ If you use Azure DevOps:
The username of the PAT must match the username of the _user of the PAT_.
The generated `nuget.config` forces the basic authentication, which cannot be overridden externally!

## Ignoring packages files when using presets

Because `nuget` manager has a dedicated `ignorePaths` entry in the `:ignoreModulesAndTests` preset, if you're using any presets that extend it (like `config:recommended`), you need to put your `ignorePaths` inside the `nuget` section for it to be merged. For example:

```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"nuget": {
"ignorePaths": ["IgnoreThisPackage/**"]
}
}
```

Otherwise, your entries will be ignored.

## Future work

We welcome contributions or feature requests to support more patterns or use cases.

0 comments on commit 3a1deef

Please sign in to comment.