question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an explicit NuGet source for NuGetPush

See original GitHub issue

As of NuGet client 3.4.something, performing a NuGet push requires a source to be specified (it used to use a default source if none was provided). See NuGet/Home#2504 for more information.

At first glance, I would assume this should go in NuGetPusher (https://github.com/cake-build/cake/blob/develop/src/Cake.Common/Tools/NuGet/Push/NuGetPusher.cs#L74) as an alternate branch if NuGetPushSettings.Source isn’t specified. The bigger question is probably what the default should be…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gep13commented, Jul 25, 2016

@daveaglick re-opening this, as I have an open PR that will add documentation for this scenario.

1reaction
daveaglickcommented, Jul 25, 2016

Sounds good - I’ve already patched my own builds to supply sources on push, so this no longer affects me personally.

Anyone else who has a build script that doesn’t supply a source will break when they update NuGet and try to push. I’m guessing at this point most folks have probably already updated NuGet and encountered this if they were going to. The verbose warning should help point out what they need to do to get back up and running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet nuget add source command - .NET CLI
The dotnet nuget add source command adds a new package source to your NuGet configuration files.
Read more >
Private NuGet Packages via GitHub Actions
Option 2 – Add NuGet Source Explicitly. Assuming a repo root nuget.config has the GitHub package source… 1. 2.
Read more >
How to pass credentials when publishing nuget package ...
The user used is the server's local administrator. Now I'm trying to publish a package using Nuget Deploy. The command line used is:...
Read more >
A NuGet package workflow using GitHub Actions
The client I'm currently working with, builds their NuGet ... We are going to configure GitHub Actions to do this by adding a...
Read more >
NuGet support in AppVeyor CI
To configure custom feed in Visual Studio open Tools → Options → Package Manager → Package Sources and add new feed. When you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found