I am quite new to Visual Studio Team Services build and in the learning process. I created a solution and created a build definition on Visual Studio Team Services. When I build it, I got these log details and then an error:
016-06-20T16:34:57.2842078Z Restoring NuGet package log4net.2.0.3.
2016-06-20T16:34:57.2892077Z Restoring NuGet package Microsoft.Azure.WebJobs.1.1.1.
2016-06-20T16:34:57.3452071Z WARNING: Unable to find version '1.1.1' of package 'Microsoft.Azure.WebJobs'.
2016-06-20T16:34:57.3462075Z C:\Users\buildguest\AppData\Local\NuGet\Cache: Package 'Microsoft.Azure.WebJobs.1.1.1' is not found on source 'C:\Users\buildguest\AppData\Local\NuGet\Cache'.
2016-06-20T16:34:57.3462075Z WARNING: Unable to find version '2.0.3' of package 'log4net'.
2016-06-20T16:34:57.3472076Z C:\Users\buildguest\AppData\Local\NuGet\Cache: Package 'log4net.2.0.3' is not found on source 'C:\Users\buildguest\AppData\Local\NuGet\Cache'.
2016-06-20T16:34:57.4162071Z Restoring NuGet package Microsoft.Data.Edm.5.6.2.
2016-06-20T16:34:57.4432070Z WARNING: Unable to find version '5.6.2' of package 'Microsoft.Data.Edm'.
2016-06-20T16:34:57.5062068Z C:\Users\buildguest\AppData\Local\NuGet\Cache: Package 'Microsoft.Data.Edm.5.6.2' is not found on source 'C:\Users\buildguest\AppData\Local\NuGet\Cache'.
The final Error:
2016-06-20T16:34:57.9012078Z ##[error]System.Exception: Unexpected exit code 1 returned from tool NuGet.exe
2016-06-20T16:34:57.9022088Z ##[error] at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeToolCmdlet.ProcessRecord()
2016-06-20T16:34:57.9022088Z ##[error] at System.Management.Automation.CommandProcessor.ProcessRecord()
When I am running build locally, nuget never report any error. I don't really understand why the online version complains. Can someone help?