Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Service Template for Visual Studio 2017

The Windows Service Template no longer displays by-default for new projects in Visual Studio 2017....and the installer has no 'search' capability.

All this AZURE stuff is great, but I still gotta do normal 'on-prem' work too...and I hate maintaining 2 versions of Visual Studio.

Any thoughts here?

enter image description here

enter image description here

like image 609
Prisoner ZERO Avatar asked Mar 23 '17 13:03

Prisoner ZERO


3 Answers

Just checked here. I see project "Windows Service (.NET Framework)" under the Windows Classic Desktop folder under Visual C#.

(Visual Basic has a similar entry.)

Only some templates are shown in parent folders, for more specialist templates you need to be more specific.

But also the search finds both.

NB I selected ".NET Desktop" workload on install, which I see you have not.

like image 159
Richard Avatar answered Oct 10 '22 23:10

Richard


Check the .NET desktop development option in the installer, then click Modify.

Visual Studio 2017 Installer

like image 44
neurotik Avatar answered Oct 10 '22 23:10

neurotik


enter image description here

VS2017 --> New project --> Visual Basic or Visual C# --> Windows Classic Desktop --> Windows Service

like image 30
Ivan Perez Avatar answered Oct 11 '22 01:10

Ivan Perez