Introducing the client-server project
You are already familiar with the common single-project templates that Visual Studio ships with and makes available in the Add New Project dialog. But did you know that it is possible to have multiple coordinated projects in a single template? This multi-project template capability is what we work with in this chapter.
We are going to take a sample client-server application that consists of two related projects and use it as the basis for our multi-project template. So, the goal here is to develop a custom client-server project template that, when invoked from Visual Studio's New Project dialog, creates not one but two related projects, as follows:
- The first (client-side) project is basically the
CitySelector
Windows Presentation Foundation (WPF) application that we are already familiar with from prior chapters. - The second (server-side) project is a Web API project designed to provide data to the WPF application.
Of course...