Skip to content

[Bug]: Error message for dotnet nuget push with apikey from another machine need improvement #11844

Open
@erdembayar

Description

@erdembayar

NuGet Product Used

dotnet.exe

Product Version

n/a

Worked before?

No response

Impact

It bothers me. A fix would be nice

Repro Steps & Context

If you create apikeys with "nuget setapikey xxxxx -source somesource" then it creates apikeys section in nuget.config.
If you copy whole repo including nuget.config into another machine, then try push nupkg then it gives me error: Key not valid for use in specified state. Reason is encrypted apikey is tied to machine, in another machine it need to regenerate.
It's not helpful, it should give us better message for why it's failing.

Verbose Logs

No response

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