Skip to content

Specify the nuget package source #96

Description

@jasonycw

Currently we do have the <RepositoryUrl> in our packages' .csproj

However, we may sometime want to to deploy to a difference GitHub package source (we have a few difference GitHub accounts) or maybe missing the <RepositoryUrl>

When it's missing, the following log will be shown and fail the push

Project is missing a valid <RepositoryUrl /> XML element value: . Package filename: /src/PackageInGithubA.1.5.14.nupkg Please use --repository option to set a valid upstream GitHub repository. Additional details are available at: https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#repositoryurl

It would be nice if there is an option to specify the package source explicitly, e.g.

gpr push "PackageInGithubA.1.5.14.nupkg" --source https://nuget.pkg.github.com/GithubB/index.json --api-key GITHUB_B_ACCESS_TOKEN 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions