I was cleaning up and updating the JS package management in a project that has shuffled along from ASP.NET Core 1.0 (and runs on .NET 4.6) and everything seemed to be going fine. And then I tried to publish.
Publish has encountered an error. Build failed. Check the Output window for more details.
Upon further examination, I noticed that there was a problem with an msbuild task, namely