Web host server - CHAPTER 2 BUILDING C# APPLICATIONS 35 To
CHAPTER 2 BUILDING C# APPLICATIONS 35 To equip your development machine to compile *.cs files from any directory, follow these steps (which assume aWindows XP installation; Windows NT/2000 steps will differ slightly): 1. Right-click the My Computer icon and select Properties from the pop-up menu. 2. Select the Advanced tab and click the Environment Variables button. 3. Double-click the Path variable from the System Variables list box. 4. Add the following line to the end of the current Path value (note each value in the Path variable is separated by a semicolon): C:WindowsMicrosoft.NETFrameworkv2.0.50215 Of course, your entry may need to be adjusted based on your current version and location of the .NET Framework 2.0 SDK (so be sure to do a sanity check using Windows Explorer). Once you have updated the Path variable, you may take a test run by closing any command windows open in the background (to commit the settings), and then opening a new command window and entering csc /? If you set things up correctly, you should see a list of options supported by the C# compiler. Note When specifying command-line arguments for a given .NET development tool, you may use either a or / (e.g., csc -? or csc /?). Configuring Additional .NET Command-Line Tools Before you begin to investigate csc.exe, add the following additional Path variable to the System Variables list box (again, perform a sanity check to ensure a valid directory): C:Program FilesMicrosoft Visual Studio 8SDKv2.0Bin Recall that this directory contains additional command-line tools that are commonly used during .NET development. With these two paths established, you should now be able to run any .NET utility from any command window. If you wish to confirm this new setting, close any open command windows, open a new command window, and enter the following command to view the options of the GAC utility, gacutil.exe: gacutil /? Tip Now that you have seen how to manually configure your machine, I ll let you in on a shortcut. The .NET Framework 2.0 SDK provides a preconfigured command window that recognizes all .NET command-line utilities out of the box. Using the Start button, activate the SDK Command Prompt located under the All Programs .Microsoft .NET Framework SDK v2.0 menu selection.
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.