Templates

dotnet new Template Creator

I post allot about the good that is Project Templates. 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

Template Creator
Makes it easy to create custom project templates for ‘dot net new’ and Visual Studio.

See the change log 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….

image

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.

 

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.

… [Click through to download it]

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

 

Add Your 2 Cents

Name

Email

or
sign in
Comment

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