I created an app that builds all the solutions I have using the Build API (https://msdn.microsoft.com/en-us/library/dn715758(v=vs.121).aspx).
The problem I am facing, is that it does not trigger the nuget package restore. Which means that if it's the first time someone is building the source code, or a package has been updated by someone else, it does not automatically update/trigger the package restore on build.
Can't find anything in the documentation, maybe someone else knows something?
I believe you will have to execute the restore command separately.
https://docs.nuget.org/consume/command-line-reference#restore-command