Nuget は、非対話モードでは入力を要求できないと私に言い続けます。資格情報を nuget.config に追加し、nuget コマンドに -NonInteractive スイッチを追加しました。私は何か間違ったことをしていると思います...しかし、何ですか?
ビルドログの一部:
RestorePackages:
C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.exe sources add -name rai69 -source "https://www.myget.com/F/rai69/"
Package Source with Name: rai69 added successfully.
C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.exe setapikey 763736d6-ff35-45ca-af37-064cfc87fc45 -source "https://www.myget.com/F/rai69/"
The API Key '763736d6-ff35-45ca-af37-064cfc87fc45' was saved for 'https://www.myget.com/F/rai69/'.
C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.exe sources update -name rai69 -user **** -pass ****
Package source "rai69" was successfully updated.
attrib -r C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.config
copy %appdata%\nuget\nuget.config C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget /y
1 file(s) copied.
"C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.exe" install "C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\TfsOnlineBuildNugetTest\packages.config" -source "https://www.myget.org/F/rai69/" -o "C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\packages" -verbosity detailed -noninteractive
Please provide credentials for: https://www.myget.org/F/rai69/
C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.targets(121,7): error : Cannot prompt for input in non-interactive mode. [C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\TfsOnlineBuildNugetTest\TfsOnlineBuildNugetTest.csproj]
UserName:
C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.targets(121,7): error MSB3073: The command ""C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\.nuget\nuget.exe" install "C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\TfsOnlineBuildNugetTest\packages.config" -source "https://www.myget.org/F/rai69/" -o "C:\a\src\d\projects\poc\TfsOnlineBuildNugetTest\packages" -verbosity detailed -noninteractive " exited with code 1.