0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/manager/nuget
RahulGautamSingh bc7d0595d0
feat(config): managerFilePatterns (#34615)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-04 08:30:24 +00:00
..
__fixtures__ feat(nuget): Support for variables (#33416) 2025-01-10 11:13:14 +00:00
__snapshots__ feat(nuget): extract full ranges (#35343) 2025-04-23 10:12:34 +00:00
extract feat(nuget): respect global.json for artifact updates (#33673) 2025-01-18 08:27:05 +00:00
artifacts.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
artifacts.ts refactor(util): move user env to util folder (#35103) 2025-04-02 10:27:27 +00:00
config-formatter.spec.ts chore(deps): update eslint monorepo to v9 (major) (#33573) 2025-02-20 11:31:13 +00:00
config-formatter.ts chore(deps): update eslint monorepo to v9 (major) (#33573) 2025-02-20 11:31:13 +00:00
extract.spec.ts feat(manager/nuget): extract msbuild sdk from Import (#35206) 2025-04-07 08:15:05 +00:00
extract.ts feat(nuget): extract full ranges (#35343) 2025-04-23 10:12:34 +00:00
index.ts feat(config): managerFilePatterns (#34615) 2025-05-04 08:30:24 +00:00
package-tree.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
package-tree.ts fix(nuget): Optimize NuGet dependency resolution (#35018) 2025-03-26 16:08:35 +00:00
readme.md feat(nuget): extract full ranges (#35343) 2025-04-23 10:12:34 +00:00
schema.ts feat(nuget): respect global.json for artifact updates (#33673) 2025-01-18 08:27:05 +00:00
types.ts feat(nuget): respect global.json for artifact updates (#33673) 2025-01-18 08:27:05 +00:00
update.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
update.ts chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
util.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
util.ts fix(nuget): PackageSourceMapping: give the longest path precedence (#34752) 2025-03-12 16:50:47 +00:00

Use packageRules to control the behavior of the NuGet package manager.

The NuGet package manager supports these SDK-style files and formats:

  • .csproj
  • .fsproj
  • .vbproj
  • .props
  • .targets
  • global.json
  • dotnet-tools.json

.NET Core projects are supported by default.

For Renovate to work with .NET Framework projects, you need to update these files so they match the new SDK-style format:

  • .csproj
  • .fsproj
  • .vbproj
  • .props
  • .targets

Disabling updates for pinned versions

In Nuget, when you use versions like Version="1.2.3" then it means "1.2.3 or greater, up to v2" When you use versions like Version="[1.2.3]" then it means "exactly 1.2.3".

If you would like Renovate to disable updating of exact versions (warning: you might end up years out of date and not realize it) then here is an example configuration to achieve that:

{
  "packageRules": [
    {
      "description": "Skip pinned versions",
      "matchManagers": ["nuget"],
      "matchCurrentValue": "/^\\[[^,]+\\]$/",
      "enabled": false
    }
  ]
}