Skip to content

Commit

Permalink
docs(nuget): add info about nested nuget ignorePaths (#33020)
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik authored Dec 10, 2024
1 parent 3bd8e68 commit 825d266
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/usage/nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ 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 package 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, all `nuget.ignorePaths` values in `:ignoreModulesAndTests` will override values you put inside `ignorePaths` at the top-level config.

## Future work

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

0 comments on commit 825d266

Please sign in to comment.