Automatically link NuGet package to repository based on RepositoryUrl #20912
Labels
topic/packages
type/feature
Completely new functionality. Can only be merged if feature freeze is not active.
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Currently there never will be a link between a (NuGet) package and a repository when publishing a package for the first time. So someone has to link it manually at the moment. I can imagine a solution, where the link happens automatically, atleast for NuGet. In .NET projects there is a field namend
RepositoryUrl
, which could be used to automatically link to an existing repository.GitHub for example requires this field to be set. Otherwise it'll be rejected. You can read about that here.
Also note the
Troubleshooting
part there which says:Maybe GitHub enforces this, because there can't be packages without a link to a repository. I'm not sure though.
Some questions we have to think about it:
I would answer these as follows:
EDIT: Maybe this can be adopted for other registries too. I'm not familiar with these though.
Screenshots
No response
The text was updated successfully, but these errors were encountered: