Files
Jeff Brown 945acf6c38 feat(nuget): update lock files when Directory.Build.props is changed (#42735)
fix(nuget): update lock files when Directory.Build.props is changed

Directory.Build.props is a standard MSBuild import file that can contain
PackageReference elements. When Renovate updates packages in this file,
lock file regeneration was skipped because updateArtifacts only handled
.csproj/.vbproj/.fsproj, Directory.Packages.props/Packages.props, and
global.json.

This extends the existing logic to treat Directory.Build.props the same
way as central management files — all project files under its parent
directory are restored to regenerate their lock files.

Also renames the isCentralManagement parameter to isPropsFile for
clarity, since it now covers both central management and
Directory.Build.props files.

Relates to #15696, #8010
2026-04-20 15:48:19 +00:00
..