6

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. 
4

1 に答える 1

2

この投稿で説明されているように、ローカルの nuget.config で平文のパスワードを適切に使用できるようになりました: http://www.xavierdecoster.com/deploying-to-azure-web-sites-using-nuget-package-restore-from -セキュアフィード

http://docs.nuget.org/docs/reference/nuget-config-settingsにある nuget.config 設定のドキュメントも確認してください。

于 2013-02-20T14:38:48.497 に答える