Download this extension from the VS Marketplace
See the videos at https://www.youtube.com/playlist?list=PLqSOaIdv36hQdvGVkMXDJJ4Uh-nGj3NRK for some additional info on how to create project templates.
Makes it easy to create custom project templates for 'dotnet new' and Visual Studio.
Read more about the new template format here and how to create and customize your templates. This extension makes it easy to get started, but you need to understand how the underlying templating system works to take full advantage of it.
- Generate template file
- Add Visual Studio host file
Right-click the project you want to turn into a template and click Create Template....
That will create a folder called .template.config and add a file called template.json to it. The folder is not being added to the project, but exist on disk in the root of the project directory.