Create your own .NET project template

Опубликовано: 12 Январь 2025
на канале: codingfreaks
313
12

I recently had a video on creating a console app using the HostBuilder. Turns out that I now want to create console apps always in that manner. So...time for a custom project template. I decided to develop this things in a live stream. I want to develop the tool from the idea to the point where everybody can install a new template using public nuget.

I reworked the sample so now you can call it with `dotnet new devdeer-hostedconsole -n YourName`. Here are the links that helped me on figuring all of this out:

MSDN documentation: https://learn.microsoft.com/en-us/dot...
Github with default .NET template: https://github.com/dotnet/sdk/blob/ma...
Sayedi Hasimi Github: https://github.com/sayedihashimi/temp...