C# Tutorials - Herong's Tutorial Examples - Version 3.2, by Dr. Herong Yang

Installing .NET Framework 2.0 SDK

This section provides a tutorial example on how to download and install Microsoft .NET Framework 2.0 SDK, which can be used as the programming environment for C# language.

The best environment to do C# programming at this time is Microsoft's .NET Framework 2.0 SDK. It is freely available from Microsoft Web site. You can follow these steps to download and install .NET Framework 2.0 SDK:

1. Go to http://msdn.microsoft.com/en-us/netframework/aa731542.aspx.

2. Click "Download .NET Framework 2.0 SDK x86 version" link in the ".NET Framework 2.0 SDK" section. The ".NET Framework 2.0 Software Development Kit (SDK) (x86)" page shows up.

3. Click the "Download" button next to "File Name: setup.exe; Size: 354.0MB". Save the file to "C:\temp\setup.exe". The file size is large. The download will some time to finish.

4. Double click the downloaded "C:\temp\setup.exe". The "Microsoft .NET Framework 2.0 SDK Setup" window shows up.

5. Click "Next" and follow setup instructions to finish the installation.

6. Open a command window and try the C Sharp compiler:

C:\herong\csharp>\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

fatal error CS2008: No inputs specified

Cool. .NET Framework 2.0 SDK is installed correctly. To avoid typing the full path name, you can put the following path in the PATH environment variable:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Last update: 2010.

Table of Contents

 About This Book

Introduction of C# (C Sharp)

 What Is C#?

Installing .NET Framework 2.0 SDK

 Installing .NET Framework 1.0 SDK

 First Program in C# 1.0

 C# Program Structure

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 Memory Usages of Processes

 Multithreading in C#

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 References

 PDF Printing Version

Installing .NET Framework 2.0 SDK - Updated in 2012, by Dr. Herong Yang