Repository navigation
Review Supply Chain security with Copilot using a VS Error List fixer - #7632
Merged
Merged
Conversation
donnie-msft
force-pushed
the
dev-donnie-msft-mcpErrorListFixer
branch
from
August 18, 2026 16:01
e414330 to
2bd4e27
Compare
kartheekp-ms
previously approved these changes
Aug 21, 2026
jebriede
reviewed
Aug 21, 2026
donnie-msft
force-pushed
the
dev-donnie-msft-mcpErrorListFixer
branch
from
August 26, 2026 18:37
2bd4e27 to
ea7efaa
Compare
kartheekp-ms
approved these changes
Aug 26, 2026
jebriede
approved these changes
Aug 27, 2026
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.
Bug
Fixes: NuGet/Home#15049
Description
Adds a
NuGetCPMErrorListEntryFixerto help Visual Studio users find a resolution for Central Package Management (CPM) error codes. This change adds support for the NU1507 error code.Replaces the
IPackageSourceMappingServicewith a newResolveSupplyChainSecurityServiceused to share implementation for invoking NuGet's MCP tool checking the repository's Secure Supply Chain configuration (review_supply_chain_security, see the NuGet.Mcp.Server README.Now when the NU1507 code is present in the Error List in Visual Studio, pressing the ✨ toward the left of that error will invoke GitHub Copilot if the NuGet MCP server is installed, enabled, and available for use.
Demo
The fixer's tooltip showing, "Ask Copilot for a fix":
The prompt sent to GitHub copilot when pressing "Ask Copilot for a fix":
Outcome:
The result is that GitHub Copilot better understands the NuGet Configuration for the current repository and makes better supply chain security suggestions. In the case of NU1507, it may suggest that the warning can be ignored since only 1 package source is used in the repo. Or it may suggest that you should enable Package Source Mapping. The MCP tool today does not create the source mappings, however.
Implementation details
NuGetErrorListEntryFixerBaseand exporting via MEF.ErrorList_ResolveSupplyChainSecurityfixer.PR Checklist