templating icon indicating copy to clipboard operation
templating copied to clipboard

Create templates for template authors

Open vlada-shubina opened this issue 3 years ago • 3 comments

https://docs.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-template-pack contains a lot of manual steps that can be avoided when using the templates

Create templates:

  • templatepack: project template; contains csproj file setup for template packing, required folder structure, one sample template (that can be disabled by parameter). This template should be ready to go for the first template.
  • templatejson: item template for template.json file
  • consider creating sample templates for csproj and other project types

Update documentation after the package is available.

vlada-shubina avatar Dec 18 '20 13:12 vlada-shubina

Consider not creating .csproj but instead .nuspec file, but for that we probably need https://github.com/NuGet/Home/issues/4254 to be fixed.

DavidKarlas avatar Apr 29 '21 10:04 DavidKarlas

Maybe it's overkill but, probably, a specific SDK would circumvent the need for having any kind of project that Visual Studio needs to understand.

paulomorgado avatar Apr 29 '21 11:04 paulomorgado

Consider not creating .csproj but instead .nuspec file,

why is that?

With a project file the project can be added to the solution and customers using Visual Studio can more easily see and edit their templates.

Running dotnet pack on a solution automatically runs pack on all projects in the solution, and therefore build scripts can be simpler.

For these reason I suggest the overall customer experience will be improved with a csproj, not a nuspec.

zivkan avatar Apr 29 '21 17:04 zivkan