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

Source parameter was not specified when pushing #7044

Closed
msmolka opened this issue Jun 20, 2018 · 6 comments
Closed

Source parameter was not specified when pushing #7044

msmolka opened this issue Jun 20, 2018 · 6 comments
Labels
Functionality:Push Resolution:NeedMoreInfo This issue appears to not have enough info to take action

Comments

@msmolka
Copy link

msmolka commented Jun 20, 2018

Details about Problem

NuGet product used NuGet.exe:

NuGet version (4.7.0.5148):

I'm trying to push both package and related symbols however when doing following command based on doc: https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages
nuget push MyPackage.nupkg

my command:
NuGet.exe Push ../../.nuget/ZNetCS.AspNetCore.ResumingFileResults.2.1.1.nupkg

I'm having error:
Source parameter was not specified.

my files are named:
ZNetCS.AspNetCore.ResumingFileResults.2.1.1.nupkg
ZNetCS.AspNetCore.ResumingFileResults.2.1.1.symbols.nupkg

@nkolev92
Copy link
Member

nkolev92 commented Jul 1, 2018

Do you have a default push source configured?

This is the expect behavior otherwise as NuGet does not know where to push.

https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file

@nkolev92 nkolev92 added Functionality:Push WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels Jul 1, 2018
@msmolka
Copy link
Author

msmolka commented Jul 2, 2018

@nkolev92 based on docs:
https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages
There is nothing about additional configuration. It says:

You can also push both primary and symbol packages to both repositories at the same time using the following:
cli
nuget push MyPackage.nupkg

I'm using nuget.exe.

On the link you provided I cannot find any section related to symbol source. I always thought that nuget.config is used to consume packages not for publish. In documentation there is nothing about nuget.config in the nuget.exe folder.

@nkolev92
Copy link
Member

nkolev92 commented Jul 3, 2018

@msmolka
In my above link, refer to defaultPushSource.

That specifies the default push source.

The symbol source push is disable due to #6113.

@anangaur
Did the new behavior get documented?

@msmolka
Copy link
Author

msmolka commented Jul 4, 2018

@nkolev92 I've seen that, but because of Microsoft Docs I was hope there is a way to push both with one command.

@anangaur
Copy link
Member

anangaur commented Jul 5, 2018

@msmolka We did document the new behavior of not auto pushing the .nupkg and .symbols.nupkg together. Looks like we can clean it up more to reflect this behavior.


image

anangaur added a commit to NuGet/docs.microsoft.com-nuget that referenced this issue Jul 5, 2018
@nkolev92
Copy link
Member

nkolev92 commented Jul 5, 2018

@msmolka
Does that answer your concern?

Currently there is no way of doing it.

We are working on a related feature, spec here
#6104

@nkolev92 nkolev92 added Resolution:NeedMoreInfo This issue appears to not have enough info to take action and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Push Resolution:NeedMoreInfo This issue appears to not have enough info to take action
Projects
None yet
Development

No branches or pull requests

3 participants