空の Web アプリケーションと nuget サーバー パッケージを使用して、プライベート nuget フィードをセットアップしました。すべてが機能しており、フィードから取得でき、Nuget Package Explorer を使用してプライベート フィードに公開できます。しかし、コマンド ライン経由で公開することはできません。資格情報の入力を求められます。Appsettings の Web アプリケーションの ApiKey を単純なパスワードに設定し、プッシュ コマンドに ApiKey を追加しようとしました。これにより、ユーザー名とパスワードの入力が求められます。SetApiKey コマンドも試しましたが、同じ動作になります。ビルドサーバーで、同じ結果で同じことを試みています。
ビルドログからのエラーメッセージは次のとおりです(情報x'd outを識別)
nuget pack "C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\Bxxxxxxxs.Web.Http.csproj" -IncludeReferencedProjects -Properties Configuration=Release
nuget SetApiKey Bxxxxxxx1 -Source http://tfs12.xxxxxxxrps.com/Nuget
nuget push *.nupkg -s http://tfs12.xxxxxxxrps.com/Nuget/
C:\Builds\2\OE Phase II\Common\bin\xxxxxxx.Web.Http.dll
1 File(s) copied
Attempting to build package from 'xxxxxxx.Web.Http.csproj'.
Packing files from 'C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\bin\Release'.
Using 'xxxxxxxs.Web.Http.nuspec' for metadata.
Found packages.config. Using packages listed as dependencies
Successfully created package 'C:\Builds\2\OE Phase II\Common\bin\xxxxxxxs.Web.Http.1.0.0.0.nupkg'.
The API Key 'xxxxxxx' was saved for 'http://tfs12.xxxxxxxrps.com/Nuget'.
Pushing Bxxxxxxxrs.Data 1.0.0.0 to 'http://tfs12.xxxxxxxrps.com/Nuget/'...
Please provide credentials for: http://tfs12.xxxxxxxrps.com/Nuget/
Object reference not set to an instance of an object.
UserName: Password: