Custom project and item templates
The .NET SDK comes with many project and item templates that can create a new project or item for you by calling the dotnet new
command, for example, console
, classlib
, web
, mvc
, and blazor
.
More Information
You can learn about the built-in project and item templates at the following link: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates.
One of the most efficient ways to improve your code editor experience is to create custom .NET project templates. These are recognized by all the code editors. You can create templates for entire projects or individual project items. They are distributed as NuGet packages (.nupkg
files) and installed through the dotnet new install
SDK command.
All project and item templates use the same principles and have similar contents. Both project and item templates contain the following items:
- All the folders and files needed when the template is used, including...