On running \'pack\' I am getting the following error...
2017-07-05T10:37:09.7762333Z ##[section]Starting: NuGet pack 2017-07-05T10:37:09.7762333Z ===========
I had this same issue with my .net standard 2.0 class library I was pack into a nuget package. Here is a screenshot of the step you need to add to replace nuget pack step.
Step Type To Add
Here is how I configured the step