Skip to content

dotnet nuget trust command not working #52220

@martinrrm

Description

@martinrrm

Describe the bug

A clear and concise description of what the bug is.
dotnet nuget trust subcommands are not working due to a missing SetAction that was missed during a refactoring PR in #51624

#51624 Pull request changed how trust subcommand where initialized:
New:

foreach (var subcommand in command.Subcommands)
{
subcommand.SetAction(NuGetCommand.Run);
}

Old: https://github.com/dotnet/sdk/blame/f47e024c8761fa148f741a9c2c983b591af006a0/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs#L190-L194

To Reproduce

Exceptions (if any)

Further technical details

details of dotnet --info

- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions