Configure dependabot to use nuget.org only and add servicing-specific MSBuild/Roslyn versions#37866
Merged
Merged
Conversation
…/Roslyn version groups for servicing Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Configure dependabot to use nuget.org registry
Configure dependabot to use nuget.org only and add servicing-specific MSBuild/Roslyn versions
Mar 6, 2026
AndriySvyryd
reviewed
Mar 6, 2026
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
AndriySvyryd
reviewed
Mar 6, 2026
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
AndriySvyryd
reviewed
Mar 6, 2026
…ions Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates repository automation/config to ensure dependency updates and build tooling versions behave correctly in servicing scenarios.
Changes:
- Configure Dependabot NuGet updates to use only the explicitly declared
nuget-orgregistry. - Introduce
ShouldUseLiveRoslynand split MSBuild/Roslyn version properties into default vs. servicing-specific groups (conditional on servicing + patch >= 2).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
eng/Versions.props |
Adds ShouldUseLiveRoslyn and conditionally selects MSBuild/Roslyn package versions for servicing builds. |
.github/dependabot.yml |
Declares a nuget-org registry and restricts the NuGet update job to that registry. |
You can also share your feedback on Copilot code review. Take the survey.
roji
approved these changes
Mar 6, 2026
| registries: | ||
| nuget-org: | ||
| type: nuget-feed | ||
| url: https://api.nuget.org/v3/index.json |
Member
There was a problem hiding this comment.
No objection but is this supposed to protect against something in particular? Like what other non-nuget.org feeds are we excluding by doing this?
Member
There was a problem hiding this comment.
It's more about perf, the other feeds (containing tools and VMR-built packages) don't have any packages that dependabot should be updating.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.github/dependabot.ymleng/Versions.propsinto two conditional groups:ShouldUseLiveRoslynis not true (default)ShouldUseLiveRoslynis true (servicing AND patch >= 2), with18.5.0for MicrosoftBuild* and5.5.0for MicrosoftCodeAnalysis*ShouldUseLiveRoslynproperty to avoid duplicationShouldUseLiveRoslyncondition to express the servicing case directly and usetrueas the sentinel value💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.