I am trying to push packages to the VSTS package manager from the command line like this
nuget.exe push -Source "MySource" -ApiKey VSTS *.nupkg
But I am getting the following error
The specified source 'MySource' is invalid. Please provide a valid source.
Event though the source exists.
Any idea why it doesn't recognize MySource?
I am using TFS 2018.
This used to work initially and I pushed multiple packages. I also tried removing the source and creating a new one but the problem persists.
I forgot to add the source using the following command:
nuget.exe sources Add -Name "MySource" -Source <url>