Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the nuget package source #96

Open
jasonycw opened this issue Aug 31, 2020 · 0 comments
Open

Specify the nuget package source #96

jasonycw opened this issue Aug 31, 2020 · 0 comments

Comments

@jasonycw
Copy link

jasonycw commented Aug 31, 2020

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant