You are previewing Microsoft® Visual Studio® 2010 A Beginner’s Guide.
O'Reilly logo
Microsoft® Visual Studio® 2010 A Beginner’s Guide

Book Description

Essential Visual Studio 2010 Skills--Made Easy!

Endorsed by Microsoft and written by a Microsoft MVP and Visual Studio expert, this hands-on guide teaches programmers and developers new to Visual Studio 2010 how to maximize the latest release of Microsoft's flagship development environment. Microsoft Visual Studio 2010: A Beginner's Guide shows you how to build applications from the ground up. You'll also learn how to customize the integrated development environment (IDE) itself, adding your own tools that integrate with Visual Studio 2010.

Table of Contents

  1. Cover Page
  2. Microsoft® Visual Studio® 2010 A Beginner’s Guide
  3. Copyright Page
  4. Dedication
  5. Contents
  6. Acknowledgments
  7. Introduction
  8. Part I Understanding Visual Studio 2010 Essentials
    1. 1 Introducing Visual Studio 2010
      1. What Is Visual Studio 2010 About?
        1. Automatically Generated Code
        2. Rapid Coding Experience
        3. Everything at Your Fingertips
        4. Customizability and Extensibility
      2. Installing Visual Studio 2010
      3. Navigating the Visual Studio 2010 Environment
        1. The Menu
        2. Toolbar
        3. Work Area
        4. Toolbox
        5. Solution Explorer
        6. Status Bar
      4. Managing VS Windows
        1. Expanding and Collapsing Windows
        2. Docking Windows
        3. Floating Windows
        4. Tabbed Windows
        5. Closing and Opening Windows
      5. Modifying Environment Settings after Setup
        1. Exporting Selected Environment Settings
        2. Importing Selected Environment Settings
        3. Resetting All Settings
      6. Familiarization with Visual Studio Project Types
        1. Windows Projects
        2. Web Projects
        3. Office Projects
        4. SharePoint Projects
        5. Database Projects
      7. Summary
    2. 2 Learning Just Enough C# or VB.NET: Basic Syntax
      1. Starting a Bare-Bones Project
      2. Examining the Code Skeleton
        1. The Main Method
        2. The Program Class
        3. The FirstProgram Namespace
      3. An Overview of the VS Code Editor
        1. Class and Member Locators
        2. Bookmarks
        3. Setting Editor Options
        4. Saving Time with Snippets
      4. Coding Expressions and Statements
        1. Making Intellisense Work for You
        2. Running Programs
        3. Primitive Types and Expressions
        4. Enums
        5. Branching Statements
        6. Loops
      5. Summary
    3. 3 Learning Just Enough C# and VB.NET: Types and Members
      1. Creating Classes
        1. Class Syntax
        2. Class Inheritance
        3. The class Snippet
      2. Writing Methods
        1. Declaring and Using a Method
        2. Declaring Parameters and Passing Arguments
        3. Returning Data and Using Method Results
        4. Method Snippets
      3. Coding Fields and Properties
        1. Declaring and Using Fields
        2. Declaring and Using Properties
        3. The Property Snippet
      4. Summary
    4. 4 Learning Just Enough C# and VB.NET: Intermediate Syntax
      1. Understanding Delegates and Events
        1. Events
        2. Delegates
        3. Event, Delegate, and Handler Code Completion
      2. Implementing Interfaces
        1. Creating an Interface
        2. Making Classes Implement the Interface
        3. Writing Code That Uses an Interface
        4. The interface Snippet
      3. Applying Arrays and Generics
        1. Coding Arrays
        2. Coding Generics
      4. Summary
  9. Part II Learning the VS 2010 Environment
    1. 5 Creating and Building Projects
      1. Constructing Solutions and Projects
        1. Creating a New Project
        2. Navigating the Solution Explorer
      2. Examining Property Settings
      3. Assembly Name
        1. Default Namespace
        2. Target Framework
        3. Output Type
        4. Startup Object
        5. Icon and Manifest
        6. Assembly Information
      4. Referencing Assemblies
        1. Adding a .NET Assembly Reference
        2. Managing Assembly References
        3. Referencing Your Own Class Libraries
        4. Using Code in Class Libraries
      5. Compiling Applications
        1. Building Solutions/Projects
        2. Rebuilding Solutions/Projects
        3. Cleaning Solutions/Projects
        4. Managing Dependencies and Build Order
        5. Managing Compilation Settings
      6. Navigating a Project with Class View
      7. Using the Class Designer
        1. Class Designer Visualization
        2. Class Designer Code Generation
      8. Summary
    2. 6 Debugging with Visual Studio
      1. Example Code for This Chapter
      2. Development-Time Code Tools
      3. Configuring Debug Mode
      4. Setting Breakpoints
        1. Creating a Breakpoint
        2. Customizing a Breakpoint
        3. Managing Breakpoints
      5. Stepping Through Code
      6. Inspecting Application State
        1. Locals and Autos Windows
        2. Watch Windows
        3. The Immediate Window
        4. The Call Stack Window
        5. The Quick Watch Window
        6. Watching Variables with Pin To Source
        7. Working with IntelliTrace
      7. Solving Problems with VS Debugger
        1. A Program with Bugs
        2. Finding the Bug
        3. Fixing the First Bug
        4. Debugging and Resolving NullReferenceException Problems
      8. Summary
    3. 7 Working with Data
      1. Working with Databases
        1. Introduction to Server Explorer
        2. Creating a Database
        3. Adding Tables
        4. Relating Tables with Foreign Keys
        5. Adding Stored Procedures
        6. Configuring Database Options
      2. Learning Language Integrated Query (LINQ)
        1. Querying Object Collections with LINQ
        2. Creating a LINQ Projection with Anonymous Types
        3. Using LINQ to Sort Collection Results
      3. Handling Data with LINQ to SQL
        1. Setting Up LINQ to SQL
        2. Working with the LINQ to SQL Designer
        3. Introduction to Querying LINQ to SQL
        4. Performing Queries on Multiple Tables
        5. Inserting Data with LINQ to SQL
        6. Updating Data with LINQ to SQL
        7. Deleting Data with LINQ to SQL
      4. Summary
  10. Part III Building Programs with VS 2010
    1. 8 Building Desktop Applications with WPF
      1. Starting a WPF Project
      2. Understanding Layout
        1. Grid Layout
        2. StackPanel Layout
        3. DockPanel Layout
        4. WrapPanel Layout
        5. Canvas Layout
      3. Using WPF Controls
        1. Managing Windows for Controls
        2. Setting Properties
        3. Handling Events
        4. Coding Event Handlers
      4. Working with Data in WPF
        1. Setting Up a Data Source
        2. Configuring a ComboBox
        3. Reading and Saving Data
        4. Using the DataGrid
      5. Summary
    2. 9 Creating Web Applications with ASP.NET MVC
      1. Understanding ASP.NET MVC
      2. Starting an ASP.NET MVC Project
      3. Creating the Models
      4. Building Controllers
      5. Displaying Views
        1. Looking Inside a View
        2. Organizing View Files
        3. Assigning MasterPage Files
        4. Partial Views (a.k.a. User Controls)
      6. Managing Routing
      7. Building a Customer Management Application
        1. Creating a Repository
        2. Creating a Customer Controller
        3. Displaying a Customer List
        4. Adding a New Customer
        5. Updating Existing Customers
        6. Deleting a Customer
      8. Summary
    3. 10 Designing Silverlight Applications
      1. Starting a Silverlight Project
      2. Navigating the Silverlight Designer
      3. Using Silverlight Controls
      4. Running Silverlight Out-of-Browser (OOB)
      5. Deploying Silverlight Applications
      6. Summary
    4. 11 Deploying Web Services with WCF
      1. Starting a WCF Project
        1. Specifying a Contract with WCF Interfaces
        2. Implementing Logic with WCF Classes
      2. Hosting a WCF Service
        1. Following General Hosting Procedures
        2. Installing IIS 7 on Windows 7
        3. Creating a Web Site on IIS 7 on Windows 7
        4. Deploying the WCF Service to IIS
      3. Communicating with a WCF Service
        1. Creating a Service Reference
        2. Coding Web Service Calls
        3. Deploying a Client That Consumes a Web Service
        4. Creating a Web Service in a Web Site
      4. Summary
  11. Part IV Enhancing the VS 2010 Experience
    1. 12 Customizing the Development Environment
      1. Implementing Custom Templates
        1. Creating New Project Templates
        2. Creating New Item Templates
      2. Creating Custom Snippets
        1. Creating a New Snippet
        2. Managing the Snippet Library
      3. Writing Macros
        1. Recording a Macro
        2. Saving a Macro
        3. Editing Macros
      4. Summary
    2. 13 Extending Visual Studio 2010
      1. Creating a Visual Studio Add-In
        1. Running the Add-In Project Wizard
        2. Examining an Add-In Wizard Solution
        3. Drilling into the Connect Class
      2. Adding Functionality to an Add-In
        1. Reviewing the OnConnection Method
        2. Implementing the Exec Method
        3. Setting Status with QueryStatus
      3. Deploying an Add-In
      4. Where to Go Next
      5. Summary
  12. Part V Appendixes
    1. A Introduction to XML
      1. VS 2010 XML Editor
      2. XML Prefixes
      3. XML Elements
      4. Attributes
      5. Namespaces
      6. The XML Menu
      7. Configuring XML Options
      8. Summary
    2. B Introduction to XAML
      1. Starting a WPF Project
      2. Elements as Classes
      3. Attributes as Properties
      4. Executing the XAML Document
      5. Property Elements
      6. Markup Extensions
      7. Summary
  13. Index