CHAPTER 2 34 BUILDING C# APPLICATIONS Table (Free web servers)
CHAPTER 2 34 BUILDING C# APPLICATIONS Table 2-1. Subdirectories of the .NET Framework 2.0 SDK Installation Root Subdirectory Meaning in Life Bin Contains amajority of the .NET development tools. Check out StartTools.htm for a description of each utility. Bootstrapper Although you can ignore most of the content in the directory, be aware that dotnetfx.exe (see Chapter 1) resides under the PackagesDotNetFx subdirectory. CompactFramework Contains the installer program for the .NET Compact Framework 2.0. Samples Provides the setup program (and core content) for the .NET Framework 2.0 SDK samples. To learn how to install the samples, consult StartSamples.htm. In addition to the content installed under C:Program FilesMicrosoft Visual Studio 8SDKv2.0, the setup program also creates the Microsoft.NETFramework subdirectory under your Windows directory. Here you will find a subdirectory for each version of the .NET Framework installed on your machine. Within a version-specific subdirectory, you will find command-line compilers for each language that ships with the Microsoft .NET Framework (CIL, C#, Visual Basic .NET, J#, and JScript .NET), as well as additional command-line development utilities and .NET assemblies. The C# Command-Line Compiler (csc.exe) There are a number of techniques you may use to compile C# source code. In addition to Visual Studio 2005 (as well as various third-party .NET IDEs), you are able to create .NET assemblies using the C# command-line compiler, csc.exe (where csc stands for C-Sharp Compiler). This tool is included with the .NET Framework 2.0 SDK. While it is true that you may never decide to build a large-scale application using the command-line compiler, it is important to understand the basics of how to compile your *.cs files by hand. I can think of a few reasons you should get a grip on the process: The most obvious reason is the simple fact that you might not have a copy of Visual Studio 2005. You plan to make use of automated build tools such as MSBuild or NAnt. You want to deepen your understanding of C#. When you use graphical IDEs to build applications, you are ultimately instructing csc.exe how to manipulate your C# input files. In this light, it s edifying to see what takes place behind the scenes. Another nice by-product of working with csc.exe in the raw is that you become that much more comfortable manipulating other command-line tools included with the .NET Framework 2.0 SDK. As you will see throughout this book, a number of important utilities are accessible only from the command line. Configuring the C# Command-Line Compiler Before you can begin to make use of the C# command-line compiler, you need to ensure that your development machine recognizes the existence of csc.exe. If your machine is not configured correctly, you are forced to specify the full path to the directory containing csc.exe before you can compile your C# files.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.