According to Microsoft, the worker service template won't be visible unless you have the ASP.NET and web development
workload enabled. When I encountered this issue I thought I needed to repair VS, but it turns out all I had to do was install the workload and it showed up in my templates list.