This end-to-end deep dive into Microsoft Visual Studio 2010 Professional will help working developers squeeze maximum productivity out of Visual Studio 2010's extraordinarily rich toolbox, whether they are writing code for the Web, Windows, Silverlight, or Microsoft's Azure cloud computing environment. The authors combine authoritative and detailed information about Microsoft's latest IDE, with extensive insights and best practices drawn from decades of development experience. Developers will learn how to use Visual Studio 2010 Professional to take full advantage of the entire .NET platform, including Windows Presentation Foundation (WPF) for rich client development, Windows Communication Foundation (WCF) for building dynamic service-oriented solutions, and Windows Workflow Foundation (WF) for structured programming around business processes. The authors also present extensive new coverage of Microsoft's powerful new tools for unit testing, application instrumentation, and code analysis. By focusing entirely on Visual Studio 2010 Professional, the authors have gone deeper into Microsoft's core product than ever before. Throughout, their focus is relentlessly practical: how to apply Microsoft's tools to build better software, faster . Detailed information on how to... n Work with solutions, projects, browsers, explorers, editors, and designers n Write better macros, add-ins, and wizards n Save more time with Visual Studio 2010's updated productivity tools n Instrument, analyze, and test your software n Refactor code for greater robustness, maintainability, and performance n Share code with team members and the larger community n Write powerful ASP.NET, ASP.NET MVC, and Silverlight web applications n Implement robust service oriented architecture (SOA)-based applications n Efficiently consume services with WCF n Write advanced Windows applications with Windows Forms and WPF n Construct data-centric applications with LINQ and Entity Framework n Create and host workflow-based applications with WF n Write applications for the Azure cloud n Extend Visual Studio with the new Managed Extensibility Framework (MEF) and the Automation Object Model n Build better object-oriented VB or C# software, and use new dynamic language features ON THE WEB: Download all examples and source code presented in this book from(http://informit.com/title/9780672330810) informit.com/title/9780672330810 visualstudiounleashed.com Cover......Page 1 Table of Contents......Page 6 Who Should Read This Book?......Page 24 Focusing on Visual Studio Professional......Page 25 Part III: Writing and Working with Code......Page 26 Conventions Used in This Book......Page 27 1 A Quick Tour of Visual Studio 2010......Page 28 The Visual Studio Product Line......Page 29 Languages, Frameworks, and Application Templates......Page 37 Developing Rich(er) Clients......Page 42 Creating Web Clients......Page 49 Making the Client Choice......Page 56 Coding for the Cloud......Page 58 Working with Data......Page 60 Write Connected, Service-Oriented Solutions......Page 65 Summary......Page 69 Installing Visual Studio......Page 70 Getting Started......Page 75 Creating Your First Project......Page 77 Navigating the IDE......Page 80 Managing the Many Windows of the IDE......Page 96 Summary......Page 101 Language Primer......Page 102 Language Features......Page 140 The .NET Framework......Page 165 Summary......Page 167 Understanding Solutions......Page 168 Getting Comfortable with Projects......Page 179 Summary......Page 195 Solution Explorer......Page 198 Class View......Page 205 Server Explorer......Page 209 Object Browser......Page 215 Document Outline......Page 218 Summary......Page 221 The Basics......Page 222 Coding with the Code Editor......Page 226 Creating and Editing XML Documents and Schema......Page 249 Working with Cascading Style Sheets......Page 254 Developing Windows Client Applications......Page 255 Developing Web Forms......Page 267 Authoring WinForms Components and Controls......Page 273 Creating Classes with the Class Designer......Page 277 Summary......Page 284 The Community Features of Visual Studio......Page 286 Accessing Help......Page 295 Discovering and Consuming Shared Content......Page 311 Participating in the Community......Page 314 Summary......Page 338 8 Working with Visual Studio’s Productivity Aids......Page 340 Basic Aids in the Text Editor......Page 342 Outlining and Navigation......Page 345 Smart Tags and Smart Tasks......Page 350 IntelliSense......Page 352 The Task List......Page 371 Summary......Page 374 9 Testing Code......Page 376 Unit Testing Basics......Page 377 The Unit Testing Framework......Page 391 Writing ASP.NET Hosted Unit Tests......Page 406 Configuring Unit Test Attributes......Page 409 Creating Ordered Tests......Page 411 Organizing Your Tests......Page 412 Summary......Page 415 10 Refactoring Code......Page 416 Visual Studio Refactoring Basics......Page 417 Renaming Code......Page 423 Extract Method......Page 426 Extract Interface......Page 435 Refactor Parameters......Page 437 Encapsulate Field......Page 441 Summary......Page 443 11 Debugging Code......Page 444 Debugging Basics......Page 445 The Visual Studio Debugger......Page 457 Advanced Debugging Scenarios......Page 487 Summary......Page 504 An Overview of Client Deployment Options......Page 506 Publishing a Project with ClickOnce......Page 508 Publishing a Project with the Windows Installer......Page 511 Publishing an ASP.NET Website or Application......Page 521 Summary......Page 528 13 Introducing the Automation Object Model......Page 530 An Overview of the Automation Object Model......Page 531 Solution and Project Objects......Page 535 Windows......Page 543 Command Bars......Page 561 Documents......Page 565 Command Objects......Page 579 Debugger Objects......Page 582 Automation Events......Page 583 Summary......Page 584 14 Writing Macros......Page 586 Recording a Macro......Page 587 Using the Macro Explorer......Page 588 Writing Macros with the Macro IDE......Page 590 Summary......Page 607 15 Writing Add-ins and Wizards......Page 608 Creating Your First Add-in Project......Page 609 The Structure of an Add-in......Page 618 A Sample Add-in: Color Palette......Page 628 Creating a Visual Studio Wizard......Page 654 Summary......Page 663 The Extensibility Problem......Page 664 MEF Architecture......Page 665 The Visual Studio Editor and MEF......Page 667 Creating Your Own MEF-Based Editor Extension......Page 677 Summary......Page 686 17 Creating ASP.NET Applications......Page 688 The Basics of an ASP.NET Website......Page 689 Designing Your User Interface......Page 718 Working with the ASP.NET Controls......Page 759 Creating an ASP.NET MVC Application......Page 775 Summary......Page 792 The Basics of Form Design......Page 794 Creating a Form......Page 798 Adding Controls and Components......Page 801 Creating Your Own Controls......Page 824 Summary......Page 829 The Windows Presentation Foundation Platform......Page 830 Introducing the WPF Designer......Page 836 Programming with WPF......Page 840 Building a Simple Image Viewer Application......Page 854 Summary......Page 872 Building Rich, Cross-Browser Interfaces with ASP.NET Ajax......Page 874 Creating Unique, Rich Experiences on Windows via the Browser......Page 892 Delivering Interactive Experiences Across Platforms......Page 903 Summary......Page 911 21 Working with Databases......Page 912 Creating Tables and Relationships......Page 913 Working with SQL Statements......Page 921 Using Database Projects......Page 931 Creating Database Objects in Managed Code......Page 939 Binding Controls to Data......Page 943 Object Relational Mapping......Page 962 Summary......Page 977 22 Service-Oriented Applications......Page 978 Service Fundamentals......Page 979 ASP.NET Web Service Applications......Page 982 WCF Service Applications......Page 1008 Summary......Page 1027 23 Embedding Workflow in Your Applications......Page 1028 Windows Workflow Fundamentals......Page 1029 Working with the Built-In Workflow Activities......Page 1049 Creating a Workflow Application......Page 1062 Summary......Page 1094 24 Developing Office Business Applications......Page 1096 An Overview of Office Extension Features......Page 1097 Creating an Office Add-in......Page 1102 Creating an Office Document Extension......Page 1110 Summary......Page 1121 Azure Fundamentals......Page 1122 Building and Deploying an Azure Application......Page 1136 Summary......Page 1168 A......Page 1170 B......Page 1175 C......Page 1176 D......Page 1181 E......Page 1185 F......Page 1187 H......Page 1189 I......Page 1190 L......Page 1192 M......Page 1194 N......Page 1196 O......Page 1197 P......Page 1198 Q......Page 1201 R......Page 1202 S......Page 1203 T......Page 1208 U......Page 1211 V......Page 1212 W......Page 1214 X......Page 1218 Z......Page 1219
This end-to-end deep dive into Microsoft Visual Studio 2010 Professional will help working developers squeeze maximum productivity out of Visual Studio 2010’s extraordinarily rich toolbox, whether they are writing code for the Web, Windows, Silverlight, or Microsoft’s Azure cloud computing environment.
The authors combine authoritative and detailed information about Microsoft’s latest IDE, with extensive insights and best practices drawn from decades of development experience. Developers will learn how to use Visual Studio 2010 Professional to take full advantage of the entire .NET platform, including Windows Presentation Foundation (WPF) for rich client development, Windows Communication Foundation (WCF) for building dynamic service-oriented solutions, and Windows Workflow Foundation (WF) for structured programming around business processes. The authors also present extensive new coverage of Microsoft’s powerful new tools for unit testing, application instrumentation, and code analysis.
By focusing entirely on Visual Studio 2010 Professional, the authors have gone deeper into Microsoft’s core product than ever before. Throughout, their focus is relentlessly practical: how to apply Microsoft’s tools to build better software, faster.
Detailed information on how to...
n Work with solutions, projects, browsers, explorers, editors, and designers
n Write better macros, add-ins, and wizards
n Save more time with Visual Studio 2010’s updated productivity tools
n Instrument, analyze, and test your software
n Refactor code for greater robustness, maintainability, and performance
n Share code with team members and the larger community
n Write powerful ASP.NET, ASP.NET MVC, and Silverlight web applications
n Implement robust service oriented architecture (SOA)–based applications
n Efficiently consume services with WCF
n Write advanced Windows applications with Windows Forms and WPF
n Construct data-centric applications with LINQ and Entity Framework
n Create and host workflow-based applications with WF
n Write applications for the Azure cloud
n Extend Visual Studio with the new Managed Extensibility Framework (MEF) and the Automation Object Model
n Build better object-oriented VB or C# software, and use new dynamic language features
ON THE WEB:
Download all examples and source code presented in this book from informit.com/title/9780672330810
visualstudiounleashed.com
This end-to-end deep dive into Microsoft Visual Studio 2010 Professional will help working developers squeeze maximum productivity out of Visual Studio 2010s extraordinarily rich toolbox, whether they are writing code for the Web, Windows, Silverlight, or Microsofts Azure cloud computing environment. The authors combine authoritative and detailed information about Microsofts latest IDE, with extensive insights and best practices drawn from decades of development experience. Developers will learn how to use Visual Studio 2010 Professional to take full advantage of the entire .NET platform, including Windows Presentation Foundation (WPF) for rich client development, Windows Communication Foundation (WCF) for building dynamic service-oriented solutions, and Windows Workflow Foundation (WF) for structured programming around business processes. The authors also present extensive new coverage of Microsofts powerful new tools for unit testing, application instrumentation, and code analysis. By focusing entirely on Visual Studio 2010 Professional, the authors have gone deeper into Microsofts core product than ever before. Throughout, their focus is relentlessly how to apply Microsofts tools to build better software, faster . Detailed information on how to... nWork with solutions, projects, browsers, explorers, editors, and designers nWrite better macros, add-ins, and wizards nSave more time with Visual Studio 2010s updated productivity tools nInstrument, analyze, and test your software nRefactor code for greater robustness, maintainability, and performance nShare code with team members and the larger community nWrite powerful ASP.NET, ASP.NET MVC, and Silverlight web applications nImplement robust service oriented architecture (SOA)based applications nEfficiently consume services with WCF nWrite advanced Windows applications with Windows Forms and WPF nConstruct data-centric applications with LINQ and Entity Framework nCreate and host workflow-based applications with WF nWrite applications for the Azure cloud nExtend Visual Studio with the new Managed Extensibility Framework (MEF) and the Automation Object Model nBuild better object-oriented VB or C# software, and use new dynamic language features ON THE Download all examples and source code presented in this book from (http://informit.com/title/9780672330810) informit.com/title/9780672330810 visualstudiounleashed.com This guide is an end-to-end deep-dive into the Visual Studio 2010 development environment. It covers all the new features in Visual Studio 2010, including a chapter on developing applications for the Windows Azure cloud computing environment. It also details the Visual Studio toolset and provides practical advice