我正在运行此命令
nuget push Package.1.0.0.0.nupkg -s http://mysource.com/ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -ConfigFile ..\..\.nuget\nuget.config
Run Code Online (Sandbox Code Playgroud)
我收到此错误
UserName: Cannot prompt for input in non-interactive mode.
Run Code Online (Sandbox Code Playgroud)
我已经指定了nuget.config文件,其中包含用户名和cleartextpassword
<packageSources>
<add key="NuGet official package source" value="http://www.nuget.org/api/v2" />
<add key="https://www.nuget.org/api/v2/" value="https://www.nuget.org/api/v2/" />
<add key="PackageName" value="http://mysource.com/nuget" />
</packageSources>
....
<packageSourceCredentials>
<PackageName>
<add key="Username" value="<username>" />
<add key="ClearTextPassword" value="<clearpassword>" />
</PackageName>
</packageSourceCredentials>
Run Code Online (Sandbox Code Playgroud)
为什么这不起作用?我在VS2013中运行批处理文件我正在使用的nuget版本是NuGet版本:2.8.50926.602