December 21, 2014
Hot Topics:

Getting Started with C#

  • August 30, 2002
  • By Anand Narayanaswamy
  • Send Email »
  • More Articles »

In this article, we will examine all the essential utilities needed to begin C# programming. In the end, you will also learn how to write a simple C# program.

Basic Requirements to Start with .NET

First of all, let's once again welcome you to the world of this new programming language. We hope you have a basic idea about Object Oriented Programming languages because many languages such as Java and C++ have emerged in the past five years. However, there will be no difficulty in learning this language if you are a beginner because this article and the coming ones will explain all the concepts and features right from the beginning. Wherever required, I explain the features involved in C-Sharp by comparing them with Java. This will ensure smooth progress for experienced programmers. Let's discuss the basic requirements needed to begin C# programming.

To begin programming with C#, you need the following items:

  • Windows 2000 Operating System or Later
  • .NET Framework SDK
  • Code Editors

Optional requirements include:

  • Visual Studio .NET
  • Third-Party Editors

A detailed explanation regarding each of these requirements is outlined below.

Windows 2000 Operating System or Later

As a first step, you need this operating system installed on your system. This operating system comes in two flavors—the Professional and Server editions. However, the Professional edition is the best choice for many users. Even though Windows 98 is suitable for C# programming, it's not possible to work any effective .NET-based, server-side programming on it. Hence, Windows 98 is not the best choice for C# programming.

.NET Framework Software Development Kit

This kit is required to compile and execute C# and other .NET programming languages; it uses a built-in command line compiler (csc.exe) and interpreter for the same. It can be downloaded as a 110 MB file from the Microsoft Web site. The SDK comes with various tools for building, deploying applications, sample code, and the required documentation. It also comes with all the necessary tools to build and deploy ASP.NET applications. The topic of code editors as outlined in requirement number 3 will be discussed later in this article. To know more about this kit, refer to the section "Related Links" at the end of this article.

Visual Studio .NET

You can also develop C# applications using Visual C# .NET, available with Visual Studio .NET. But this is an optional choice and it's up to you to decide whether or not to use it. This will help you to develop Windows-based applications easily and with limited effort because you don't have to devote too much time to designing the user interface with WinForms. The only work left for you to do is to write the coding appropriately, as per the .NET Standards. A forthcoming section of this article will explain third-party editors in detail. To know more details about Visual Studio .NET, refer to the section Related Links at the end of this article.

Installing the .NET Framework SDK

After downloading the SDK, locate the drive and folder where you have downloaded the file. Click on the file to begin installation. The following figures will show you the installation process. When you click on the file, you will see a dialog box as shown in Figure 1. Click Yes to proceed further.

Figure 1—.NET Framework Setup

The setup will begin extracting the required cab files as shown in Figure 2.

Figure 2—Extracting cab files

Sometimes, while extracting, the setup program will ask you to update the Windows installation. If you had done this before, it will not ask. If you haven't updated, click Yes to have the setup update your current installation. Windows will prompt you to restart the system. Click Yes to do so.

After doing the above process, the setup will show a series of dialog boxes to proceed with the installation. After displaying the initial screen, setup will show a license agreement box. Click on the I Agree radio button to move on to the folder selection box. You can either choose an existing folder or specify a new folder name. We recommend that you specify a new folder name. Setup will automatically create the folder for you. After this, you may have to select the options for Installation. The whole process is self-explanatory and may vary depending up on the versions. Finally, setup begins the Installation and it will also show you the balance of time left to complete the installation.

When the .NET Framework has been completely installed, you again have to restart your system. After that, you can start programming with C#. You should install optional components such as Microsoft Data Access Components 2.7 for developing ASP.NET applications. The last section of this article illustrates how to code a simple "Hello World" C# program.





Page 1 of 2



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Sitemap | Contact Us

Rocket Fuel