O'Reilly logo

C# Primer: A Practical Approach by Stanley B. Lippman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required