Error: VisualStudioToolsCommandlet looked like a commandlet, but we could not find the class.

In my case the issue was I didn’t have the plugin enabled in my project for “Visual Studio Integration Tools”:

It’s not enough to install the VS Extension; you also have to add the plugin to each project you created.

7 Likes