豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

nuget.exe delete won't prompt for credentials (it's in non-interactive mode) #2626

@spadapet

Description

@spadapet

Using nuget.exe 3.4.3.854

REPRO

  • nuget.exe delete foo 99.99 -Source nuget.org

RESULT
WARNING: No API Key was provided and no API Key could be found for 'https://www.nuget.org/api/v2/package'. To save an API Key for a source use the 'setApiKey' command.
WARNING: Deleting foo 99.99 from the 'https://www.nuget.org/api/v2/package'.
DELETE https://www.nuget.org/api/v2/package/foo/99.99
Unauthorized https://www.nuget.org/api/v2/package/foo/99.99 335ms
Please provide credentials for: https://api.nuget.org/v3/index.json
UserName: Cannot prompt for input in non-interactive mode.

EXPECT
The command prompt shouldn't be in non-interactive mode. If there is some other reason that the username can't be typed, then show the real reason.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions