Templates

dotnet new Template Creator

I post a lot about the good that is Project Templates. It seems only fitting for me to blog about a new extension from Mads Kristensen that will make it much easier for you (and I) to create those templates!

Template Creator

It makes it easy to create custom project templates for ‘dot net new’ and Visual Studio.

See the changelog for changes and roadmap.

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.

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 exists on disk in the project directory’s root.

Related Articles :

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.

And it wouldn’t be a Mads project if it wasn’t open source… Mads Kristensen/TemplateCreator

tags:.NET, Coding4Fun, Templates
More episodes in this series

Coding4Fun Blog

  • OpenZWave for UWP and.NET
  • OpenZWave for UWP and.NET
  • Coding4Fun Blog
  • Coding4Fun May 2017 Round-up
  • Coding4Fun May 2017 Round-up

Related episodes

  • Coding4Fun Blog
  • Don’t Skimp Code Security, Check Out DevSkim
  • Don’t Skimp Code Security, Check Out DevSkim
  • Coding4Fun Blog
  • WTS FTW 10T (Windows Template Studio For The Windows 10 Template)
  • WTS FTW 10T (Windows Template Studio For The Windows 10 Template)
  • Coding4Fun Blog
  • don’t CLI Tool Build Redux
  • don’t CLI Tool Build Redux
  • Coding4Fun Blog
  • Writing Visual Studio 2015 Extensions? You’ll want these Templates…
  • Writing Visual Studio 2015 Extensions? You’ll want these Templates…
  • Coding4Fun Blog
  • Guarding the code with Package Security Alerts and Roslyn Security Guard
  • Guarding the code with Package Security Alerts and Roslyn Security Guard
  • Coding4Fun Blog
  • Do you don’t clip? Here’s how you can add your own tools…
  • Do you don’t clip? Here’s how you can add your own tools…
  • Coding4Fun Blog
  • Tips on Creating Templates, a new UWP Template, and a Prism Pack too!
  • Tips on Creating Templates, a new UWP Template, and a Prism Pack too!
  • Coding4Fun Blog
  • Refactoring Essentials – Open Source, Cross-Platform Refactoring, and Analyzers
  • Refactoring Essentials – Open Source, Cross-Platform Refactoring, and Analyzers

Coding4Fun Blog

  • No waffling here… SideWaffle and a step-by-step guide to creating Visual Studio Item…
  • No waffling here… SideWaffle and a step-by-step guide to creating Visual Studio Item Templates
  • Coding4Fun Blog
  • Code Analysis at Compile? Why? Do it Live!
  • Code Analysis at Compile? Why? Do it Live!
  • The Discussion

Email Twitter Facebook RSS RSS about authors speakers tags contact us English code of conduct terms of service privacy state document template you need, fill it out online, and submit to a certain organization’s website. There is also another way you can go. If you have enough time, you can download it to your computer and print it out then. Having filled it out manually, yo

Jeffery D. Silvers
Love and share my articles, I will be happy to react on it ! Spent 2002-2009 promoting weed whackers in Edison, NJ. Earned praise for importing junk food for fun and profit. Spent 2001-2006 exporting teddy bears in Atlantic City, NJ. Had some great experience investing in tattoos in Fort Walton Beach, FL. Spent 2002-2007 selling action figures in the aftermarket. Enthusiastic about working on basketballs on the black market.