How do I create a WCF Service Library project in Visual Studio 2017?

Knowledge Cube picture Knowledge Cube · May 1, 2017 · Viewed 9.5k times · Source

I need to develop an application for my distributed computing class, with one central server and multiple graphical clients. I was thinking of trying WCF for this, since I am already familiar with making .NET standalone desktop applications using Windows Forms or WPF.

Since I have never worked with WCF before, I am trying to follow a tutorial posted on MSDN, which has defining a service contract as its first major step.* Part of this involves creating a WCF Service Library project, which is supposed to be available as a template under the language of my choice (I am going to use C# here). However, I do not see this project template listed as an option in the new project dialog, and looking for WCF in the search bar returns no results.

How can I make this project template available for use in Visual Studio 2017?

* It should probably be noted that the tutorial mentions that it is written with Visual Studio 2012 in mind. Has anything changed since then that I should be aware of as far as the tutorial is concerned?

Answer

Nick Westgate picture Nick Westgate · Sep 23, 2017

Open the installer, choose Individual Components and scroll down to Development Activities. Check the WCF checkbox:

WCF checkbox in the Visual Studio installer