Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 Worker Service

I just installed Visual Studio 2022 and I can't see the template for worker services. Does this no longer exist?

like image 471
Hendriks91 Avatar asked Oct 14 '25 22:10

Hendriks91


1 Answers

I had the exact same problem (worker service and blazor templates were missing) and this is what I did to get them back:

  • I double-checked what features and tools I had installed in VS 2019 where all my project templates were still present and noticed I was missing 'ASP.NET and web development'. I ticked this box in the Visual Studio installer and installed the relevant tools. At first this made no difference.
  • I then checked where VS normally stores its project templates. I found this article useful: Where default templates are stored Note Visual Studio 2022 gets installed under Program Files (64 bit, not 86x) To my surprise, all missing templates were there.
  • I then decided to repair VS 2022 via the VS installer. It then prompted me to restart my PC (which it hadn't done before).
  • Finally, after the restart I could see the project templates again.

I guess the reason for my VS 2022 not having those templates at first was because I deselected F# components under 'Individual Components' in the installer, which then removed a few other tools and features as well.

I also saw an article online suggesting to install the .Net SDK (but it was already installed for me). Download .Net SDK

I speculate repairing VS did the trick because my internet connection was also not very stable at the time that I installed it the first time.

like image 171
Martina Fourie Avatar answered Oct 18 '25 13:10

Martina Fourie