~/talk

Keeping it DRYer with Templates

Talkat NDC London 2019 · 2019-01-30..02-01· [developer-experience]
slides:none on file

Shows how to stop copying boilerplate by creating reusable .NET templates using the dotnet CLI, Visual Studio v6 extensions and Yeoman. Explains making a project packable (add packable true), adding a .template.config/template.json with the preferNameDirectory flag for automatic namespace replacement, packing to a .nupkg and installing with dotnet new -i, or exporting a .zip, wrapping it in a .vsix and publishing to the Visual Studio Marketplace. Notes dotnet core templates are easier to update and auto-substitute namespaces; v6 templates are easier to install in VS but harder to change.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:23The power of templates
  3. 5:37Creating .NET core templates
  4. 15:07Visual Studio VSIX templates
  5. 26:46Publishing and management
  6. 34:59Alternative approaches
  7. 36:47Resources and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.