Support declaring PackageSourceMappings via MSBuild items #12382
Labels
Area:PackageSourceMapping
Issues related to the package source mapping feature
Partner:MSBuild
Type:Feature
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
Packages provided directly via the SDK (via the pre-existing LibraryPacks feature or other mechanisms) previously have had some sharp edges with Package Source Mapping and Central Package Version Management. dotnet/sdk#27840 is one example of this, but there have been some enhancements to those mechanisms to automatically filter out certain kinds of packages or package sources (e.g. #11951). This is a great approach, but a future-facing approach might be to allow the SDK to programmatically update Package Source and Mappings for sources and packages that it contributes via adding certain kinds of MSBuild metadata or items - that pushes the work onto the SDK team and relieves the NuGet logic from having to update these distinctions if the desired logic should change at some future time.
Additional Context and Details
No response
The text was updated successfully, but these errors were encountered: