PowerShell / PowerShellStandard

MIT License
158 stars 24 forks source link

How to install this module for use in the VS New project dialog? #59

Open StingyJack opened 5 years ago

StingyJack commented 5 years ago

I ran the correct command to install this using the dotnet cli (the blog post formatting is rekt, so I may not have done this correctly), but I don't see the project type available in the new project dialog.

dotnet new psmodule creates a csproj and it can be opened in vs and it works, but why should I have to shell out to the console and type all that when I can hit a few keystroke shortcuts to do the same?

TylerLeonhardt commented 5 years ago

@StingyJack is there some sort of way to install templates in VS? I personally don't use it so I'm unfamiliar with the process.

StingyJack commented 5 years ago

I followed the 2012 era version of this guide back then to create custom project templates for my team, and it worked pretty well. We just had to put them into a folder somewhere in $home$\Documents. I dont imagine that has changed as an option. The newer docs cover using a vsix as well.

TylerLeonhardt commented 5 years ago

You might me able to use the template vsix which is found here: https://www.nuget.org/packages/Microsoft.PowerShell.Standard.Module.Template/

Maybe give that a try?