Hi,
I noticed that when defining build steps for a Generic Package it is not falling back to working dir . and that it just throws an object reference.
I would suggest to either fall back to root dir or giving a better error handling.
"buildSteps": [ { "args": [ "restore" ], "command": "nuget.exe" },

"buildSteps": [ { "args": [ "restore" ], "command": "nuget.exe", "workingDirectory": "." },