mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-12 23:51:55 +00:00
![]() 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> |
||
---|---|---|
.. | ||
__fixtures__ | ||
__snapshots__ | ||
extract | ||
artifacts.spec.ts | ||
artifacts.ts | ||
config-formatter.spec.ts | ||
config-formatter.ts | ||
extract.spec.ts | ||
extract.ts | ||
index.ts | ||
package-tree.spec.ts | ||
package-tree.ts | ||
readme.md | ||
schema.ts | ||
types.ts | ||
update.spec.ts | ||
update.ts | ||
util.spec.ts | ||
util.ts |
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
}
]
}