Skip to content

PublishRepositoryUrl vs RepositoryUrl settings? #659

@PureKrome

Description

@PureKrome

Hi 👋🏻

I'm trying to determine the reason why we have both of these settings. The Source Link docs (for PublishRepositoryUrl) say:

(emphasis, mine)

PublishRepositoryUrl needs to be set by the project in order to publish the URL into RepositoryUrl property, which is used e.g. in the nuspec file generated for NuGet package produced by the project.

So this means that we need to provide a true setting, if we want the RepositoryUrl to get set. Hmm, okay ...

but I can just MANUALLY set the RepositoryUrl in the .csproj anyways! And these two settings are right near each other, in the .csproj (usually).

AND .. if i manually set the value for RepositoryUrl ... then this PublishRepositoryUrl doesn't do anything.

So what's the use of this setting, then?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions