Skip to content

Fix dependabot global.json scanning and clean-up#12898

Merged
ViktorHofer merged 7 commits intomainfrom
FixDependabotScanningAndSimplification
Dec 9, 2025
Merged

Fix dependabot global.json scanning and clean-up#12898
ViktorHofer merged 7 commits intomainfrom
FixDependabotScanningAndSimplification

Conversation

@ViktorHofer
Copy link
Copy Markdown
Member

@ViktorHofer ViktorHofer commented Dec 9, 2025

Stops PR like #12888 getting opened

Add an empty global.json to eng/dependabot so that it never scans the one in the repo root and then attempts to load and update the msbuild sdks defined there.

Also rename Packages.props to Directory.Packages.props and delete the unnecessary dependabot.csproj as dependabot now has native support for D.P.props.

Unrelated but in the same files: Also remove ProjectIsDeprecated conditions as that property is already dead.

Add an empty global.json to eng/dependabot so that it never scans the one in the repo root and then attempts to load and update the msbuild sdks defined there.

Also rename Packages.props to Directory.Packages.props and delete the unnecessary dependabot.csproj as dependabot now has native support for D.P.props.
@ViktorHofer ViktorHofer requested a review from a team as a code owner December 9, 2025 10:30
Copilot AI review requested due to automatic review settings December 9, 2025 10:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves Dependabot configuration by preventing it from scanning the root global.json file (which contains MSBuild SDK definitions that shouldn't be auto-updated) and modernizes package management by renaming Packages.props to the standard Directory.Packages.props filename. It also removes obsolete ProjectIsDeprecated conditions that referenced a property no longer in use.

  • Adds an empty global.json to eng/dependabot/ to prevent Dependabot from scanning the root global.json's msbuild-sdks section
  • Renames eng/dependabot/Packages.props to Directory.Packages.props and deletes the workaround dependabot.csproj (Dependabot now has native support for Directory.Packages.props)
  • Removes all ProjectIsDeprecated conditions as this property is no longer used in the codebase

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
eng/dependabot/global.json New empty JSON file that prevents Dependabot from scanning the root global.json containing msbuild-sdks
eng/dependabot/dependabot.csproj Deleted workaround file no longer needed since Dependabot has native Directory.Packages.props support
eng/dependabot/Directory.Packages.props Renamed from Packages.props; removed obsolete $(ProjectIsDeprecated) condition from GlobalPackageReference ItemGroup
eng/Versions.props Updated comment to reference new filename Directory.Packages.props
eng/Directory.Packages.props Updated Import path and comment to reference new filename Directory.Packages.props
Directory.Build.props Updated DirectoryPackagesPropsPath property to point to the renamed file
Directory.Build.targets Removed obsolete $(ProjectIsDeprecated) condition from Global Analyzer Config ItemGroup
Comments suppressed due to low confidence (1)

eng/dependabot/Directory.Packages.props:4

  • The comment still references the old filename Packages.props instead of Directory.Packages.props. This should be updated to: Versions managed by Darc/Maestro should be in ..\Directory.Packages.props.

Comment thread Directory.Build.targets Outdated
ViktorHofer and others added 3 commits December 9, 2025 11:35
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Removed comment for including Common.globalconfig.
@ViktorHofer ViktorHofer enabled auto-merge (squash) December 9, 2025 11:03
@ViktorHofer ViktorHofer disabled auto-merge December 9, 2025 11:55
@ViktorHofer ViktorHofer merged commit bc0dc67 into main Dec 9, 2025
10 checks passed
@ViktorHofer ViktorHofer deleted the FixDependabotScanningAndSimplification branch December 9, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants