System.Http not found when trying to push NuGet #4409
Unanswered
scapodicasa
asked this question in
Q&A
Replies: 1 comment
-
NuGetPush uses the legacy nuget.exe, today it's recommended to instead use the .NET CLI which is available with the DotNetNuGetPush alias, example: var settings = new DotNetNuGetPushSettings
{
Source = "https://www.example.com/nugetfeed",
ApiKey = "4003d786-cc37-4004-bfdf-c4f3e8ef9b3a"
};
// With FilePath instance
var packageFilePath = GetFiles("foo*.nupkg").Single();
DotNetNuGetPush(packageFilePath);
// With string parameter
DotNetNuGetPush("foo*.nupkg", settings); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to push a NuGet package on my private GitHub repository using a Cake script.
When calling NuGetPush method I obtain this exception:
Am I missing something to get it work properly?
Beta Was this translation helpful? Give feedback.
All reactions