Skip to content

Add --configfile option to dotnet nuget push command#6286

Merged
martinrrm merged 2 commits intodevfrom
dev-martinrrm-dotnet-nuget-push-config-option
Feb 26, 2025
Merged

Add --configfile option to dotnet nuget push command#6286
martinrrm merged 2 commits intodevfrom
dev-martinrrm-dotnet-nuget-push-config-option

Conversation

@martinrrm
Copy link
Copy Markdown
Contributor

@martinrrm martinrrm commented Feb 25, 2025

Bug

Fixes: NuGet/Home#4879
Docs PR: dotnet/docs#45050

Description

Adds the option --configfile to the command dotnet nuget push. Other commands also use XPlatUtility.ProcessConfigFile to get the config file, if no value is passed it will default to XPlatUtility.GetSettingsForCurrentWorkingDirectory() which is the current implementation.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@martinrrm martinrrm requested a review from a team as a code owner February 25, 2025 19:30
Copy link
Copy Markdown
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need an SDK side change?

@martinrrm
Copy link
Copy Markdown
Contributor Author

@nkolev92 created an SDK PR for this dotnet/sdk#47126, I'm not sure if that's all the changes needed. Can I merge this one now and continue that conversation on the other PR?

Copy link
Copy Markdown
Member

@zivkan zivkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR checklist says that a docs issue is linked, but there is no link to a docs issue

@nkolev92
Copy link
Copy Markdown
Member

@nkolev92 created an SDK PR for this dotnet/sdk#47126, I'm not sure if that's all the changes needed. Can I merge this one now and continue that conversation on the other PR?

Oh yeah, I think these PRs can be merged out of order.

@martinrrm
Copy link
Copy Markdown
Contributor Author

@zivkan created a docs PR in the dotnet repo dotnet/docs#45050

@martinrrm martinrrm merged commit 15676e2 into dev Feb 26, 2025
@martinrrm martinrrm deleted the dev-martinrrm-dotnet-nuget-push-config-option branch February 26, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet-nuget-push: does not support --config-file included in examples

5 participants