I am trying to automate the TFS build process, so that when a dll gets built, it will go to NuGet Server, using TFS 2015.
I updated the nugget exe on TFS agent (C:\Lucky\agent\agent\Worker\Tools)
Now I am getting an error when publishing to local nugget server. I tried so many option but still getting the error.
I am not sure what is going wrong. Also anyone share good step by step process to automate TFS build process with Nuget?
Error
Set workingFolder to default: C:\Lucky\agent\tasks\NuGetPublisher\0.1.41 Executing the powershell script: C:\Lucky\agent\tasks\NuGetPublisher\0.1.41\NuGetPublisher.ps1 Check/Set nuget path Creating Nuget Arguments Getting credentials for Microsoft.TeamFoundation.DistributedTask.Agent.Common.TaskEndpoint Saving to C:\Lucky\agent_work\2\NuGet\newNuGet.config No Pattern found in solution parameter. Found files: 1 File: C:\Lucky\agent_work\2\s\Dev\TestDLL Invoking nuget with push "C:\Lucky\agent_work\2\s\Dev\TestDLL" -s http://localhost/NuGetLocalSvr/ -configFile "C:\Lucky\agent_work\2\NuGet\newNuGet.config" -apiKey VssSessionKey nuget setapikey {XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX} on C:\Lucky\agent_work\2\s\Dev\TestDLL C:\Lucky\agent\agent\worker\tools\NuGet.exe push "C:\Lucky\agent_work\2\s\Dev\TestDLL" -s http://localhost/NuGetLocalSvr/ -configFile "C:\Lucky\agent_work\2\NuGet\newNuGet.config" -apiKey VssSessionKey nuget setapikey {XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX} Ambiguous option 's'. Possible values: Source SymbolSource SymbolApiKey. Unexpected exit code 1 returned from tool NuGet.exe