-
Notifications
You must be signed in to change notification settings - Fork 258
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
dotnet-nuget-push: does not support --config-file included in examples #4879
Comments
There is a workaround..... This took me ages to figure out unfortunately. Assuming you have your desired nuget.config inside /wd/ this will push everything in /nuget-artifacts/ to NuGet according to the settings in that config file (cd /wd/ ; dotnet nuget push /nuget-artifacts/ --api-key vsts)
|
So considering how long this has been open, does this mean we should just use nuget to publish instead of dotnet? |
Please strongly consider to add support for .NET Core SDK 2.1 is mostly in sweet condition now except a few sharp edges here and there. The absence of Please please please. We need that option. |
Is there any plan for this feature ? Others |
If I am able to run a |
Almost 7 years and no progress |
Hello Microsoft? Is anyone looking at this? |
From @dmccaffery on March 23, 2017 6:49
Steps to reproduce
Expected behavior
this would normally error out as the config file and package are empty files for the purposes of proving the point, but even with a valid pkg and config file, this does not work as expected as the command line parser does not support the --config-file option indicated in the example docs from:
https://github.com/dotnet/docs/blob/master/docs/core/tools/dotnet-nuget-push.md#examples
Actual behavior
The command is missing from the available options in the parser:
https://github.com/dotnet/cli/blob/485237a8a0c61c17858e88b9525d29e0fb426064/src/dotnet/commands/dotnet-nuget/NuGetCommandParser.cs#L50
The ability to set the config file is a pretty important requirement for CI systems that dump nuget credentials to a temporary file as they must appear in clear-text on non-windows platforms. The VSTS tasks do this today, for example, although they use the nuget xplat client directly:
https://github.com/Microsoft/vsts-tasks/blob/d2290c1a38f98a13af6e8e5c06430b498742c5a3/Tasks/NuGetPublisher/nugetpublisher.ts#L122
https://github.com/Microsoft/vsts-tasks/blob/d2290c1a38f98a13af6e8e5c06430b498742c5a3/Tasks/NuGetPublisher/nugetpublisher.ts#L140
https://github.com/Microsoft/vsts-tasks/blob/d2290c1a38f98a13af6e8e5c06430b498742c5a3/Tasks/NuGetPublisher/nugetpublisher.ts#L179
At any rate, if the dotnet-nuget command is forwarding arguments for everything else that the nuget client supports, it should also forward the config file argument. Someone thought of it, obviously, since its in the docs -- it just isn't supported by the dotnet-nuget command today.
Environment data
dotnet --info
output:Copied from original issue: dotnet/cli#6123
The text was updated successfully, but these errors were encountered: