2.2. Opening a New Visual Studio Project

For this program we want to create a C# project in Visual Studio using the Console Application template. Assuming that you have brought the Visual Studio Start Page to your screen (see Figure 2.1), click the New Project button. Under Project Types, click Visual C# Projects. Under Templates, click Console Application. Change the name of the project to WordCount. You can either leave the location at the default or choose another directory in which to store your project. When done, click OK.

Figure 2.1. Visual Studio

By default the program file is named Class1.cs. It's probably better to rename it something ...

Get C# Primer: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.