Skip to content

madskristensen/TemplateCreator

Repository files navigation

Template Creator

Build status

Download this extension from the VS Marketplace or get the CI build.


Makes it easy to create custom project templates for 'dotnet new' and Visual Studio.

See the change log for changes and road map.

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.

Features

  • Generate template file
  • Add Visual Studio host file
  • Add .NET CLI host file

Generate template file

Right-click the project you want to turn into a template and click Create Template....

Context menu project

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.

Solution Explorer

Add Visual Studio/.NET CLI host files

To have the template show up in the ASP.NET project dialog, you need to add a Visual Studio specific host file to the .template.config folder.

Add host files

To control the CLI experience using dotnet new you need a .NET CLI specific host file.

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools extension for Visual Studio which enables some features used by this project.

License

Apache 2.0

About

A Visual Studio extension

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages