Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This repo contains the Template Engine which is used by dotnet new

License

NotificationsYou must be signed in to change notification settings

dotnet/templating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status

Overview

This repository is the home for the .NET Template Engine. It contains the libraries for template instantiation and template package management used indotnet new andNew Project Dialog and New Item Dialog in Visual Studio and Visual Studio for Mac. The libraries are also distributed as the NuGet packages on nuget.org.

The key packages are:

Package nameDescription
Microsoft.TemplateEngine.EdgeThe template engine infrastructure: managing template packages, templates, components, executing template. Main API surface for the products aiming to use template engine. See'Inside Template Engine' article for more information.
Microsoft.TemplateEngine.AbstractionsContains the main contracts betweenEdge and components
Microsoft.TemplateEngine.Orchestrator.RunnableProjectsThe template generator based ontemplate.json configuration
Microsoft.TemplateSearch.CommonFacilitates template packages search on nuget.org
Microsoft.TemplateEngine.IDELightweight API overlay overMicrosoft.TemplateEngine.Edge.
Microsoft.TemplateEngine.Authoring.TasksAuthoring tools: MSBuild tasks for template authoring
Microsoft.TemplateEngine.Authoring.CLIAuthoring tools: dotnet CLI tool with utilities for template authoring
Microsoft.TemplateEngine.Authoring.TemplateVerifierAuthoring tools:snapshot testing framework for the templates

dotnet new

dotnet new CLI is now located indotnet/sdk repo.

The issues fordotnet new CLI UX should be opened in that repository.

Template Content Repositories

.NET default templates are not located in this repository.The templates are located in the following repositories:

TemplatesRepository
Common project and item templatesdotnet/sdk
ASP.NET and Blazor templatesdotnet/aspnetcore
ASP.NET Single Page Application templatesdotnet/spa-templates
Aspire templatesdotnet/aspire
WPF templatesdotnet/wpf
Windows Forms templatesdotnet/winforms
Test templatesdotnet/test-templates
MAUI templatesdotnet/maui

Issues for the template content should be opened in the corresponding repository.Suggestions for new templates should be opened in closest repository from the list above. For example, if you have a suggestion for new web template, please create an issue indotnet/aspnetcore repository.

How to author the templates

This repository contains a lot of useful information on how to create the templates supported bydotnet new,Visual Studio and other tools that uses template engine.

The starting point tutorial on how to create new templates is available inMicrosoft Learn.More advanced information can be found in theWiki ordocs folder in the repo.

Still have a question about template authoring? Do not hesitate toopen new discussion in GitHub Template Authoring.

Authoring Tools

Besides the actual implementation of .NET Template Engine, the repo contains various tools that help to author the templates.They are not shipped together with .NET SDK, but available on NuGet.org. More information can be foundhere

Template Samples

We have createddotnet template samples, which shows how you can use the template engine to create new templates. The samples are setup to be stand alone for specific examples.More documentation can be found in theWiki.

Contributing

We welcome contributions! You can contribute by:

See ourgood first issue candidates for the list of issues we consider as good starting point for first contribution to the repo.

See ourhelp wanted issues for a list of issues we think are great for community contribution.

We have a number of features where we are actively looking for the feedback. They are marked withgathering-feedback label.If you think they are useful for your templates, please let us know in comments or by reacting on those.

Check out ourcontributing page to learn more details.

How to build, run & debug

Check out ourcontributing page to learn how you can build, run and debug.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must followMicrosoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

About

This repo contains the Template Engine which is used by dotnet new

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors159


[8]ページ先頭

©2009-2025 Movatter.jp