Chapter 4. Visual Studio .NETIn Chapter 2 you learned that you can create your C# applications using Notepad. In this chapter, you'll learn why you never will. Microsoft developed Visual Studio .NET (VS.NET) to facilitate the creation of Windows and web applications. You will find that this Integrated Development Environment (IDE) is a very powerful tool that will greatly simplify your work. Visual Studio .NET offers many advantages to the .NET developer. The following features are discussed in this chapter:
One VS.NET feature will be so important to you, even as a C# novice, that it actually merits its own chapter: an integrated debugger, which allows you to step through code, observe program run-time behavior, and set breakpoints, even across multiple languages. The debugger is considered in detail in Chapter 10. In addition to these basic capabilities, VS.NET provides a number of advanced features that will simplify the development process. These features include:
Many of these advanced features are covered in detail in Programming ASP.NET and Programming .NET Windows Applications (both books cowritten by Jesse Liberty and Dan Hurwitz, published by O'Reilly). Robert Heinlein said "TANSTAAFL: There ain't no such thing as a free lunch."[1] While Visual Studio .NET can save you a lot of grunt typing (and in general greatly facilitate and accelerate the development process), the automatically generated code can obscure what is really necessary to create good working applications. It is sometimes difficult to know how Visual Studio .NET accomplishes its legerdemain. Similarly, the proliferation of mysteriously named files across your filesystem can be disconcerting when all you want to do is a simple housekeeping chore, like rename a minor part of the project.
Since most of the applications we'll build in this book are console applications designed to illustrate the basics of the language, there will be very little obscuring code produced. When you create Windows and web applications, however, you'll want to learn to sort through the code Visual Studio .NET generates in order to focus on the logic of your program. The current chapter cannot possibly teach you everything about Visual Studio .NET; it is far too large and complex an application. What this chapter does is give you the basics for getting started and also point out some of the possible pitfalls.
|