Skip to content

[Feature]: Add Package Source Mapping MSBuild files #11731

Open
@grochoge

Description

@grochoge

NuGet Product(s) Involved

NuGet.exe, Visual Studio Package Management UI, Visual Studio Package Manager Console, MSBuild.exe, dotnet.exe

The Elevator Pitch

We want to prevent package source confusion for security and maintainability.

The Package Source Mapping feature is a good start, but being limit to package ID globs in NuGet.Config is not very flexible and seems difficult to maintain.

Please add the ability to specify a package source (referencing a packageSource key from NuGet.config or a URL) to the package element in packages.config and PackageReference in msbuld projects. I'd be OK looking for transitive dependencies in the same source, but having that configurable would be nice as well.

Please add something to the Visual Studio package manager UI to allow this as well. Maybe based on the source drop-down?

Additional Context and Details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions