Details

Professional Visual Studio 2015


Professional Visual Studio 2015


1. Aufl.

von: Bruce Johnson

40,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 19.08.2015
ISBN/EAN: 9781119067870
Sprache: englisch
Anzahl Seiten: 1320

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>In-depth coverage of the major Visual Studio 2015 revamp</b> <p><i>Professional Visual Studio 2015</i> is the leading pro's guide to new and upgraded features of Microsoft Visual Studio. With a unique IDE-centric approach and deep dive into the software's many nooks and crannies, this book will bring you up to speed quickly on everything Visual Studio 2015 has to offer. Whether you're new to Visual Studio or just upgrading, you'll appreciate in-depth, professional explanation of updates, features, and support. Visual Studio 2015 is packed with improvements that increase productivity, and this book walks you through each one in succession to help you smooth your workflow and get more accomplished. From customization and the interface to code snippets and debugging, the Visual Studio upgrade expands your options — and this book is your fast-track guide to getting on board quickly. <p>The Visual Studios 2015 release fixes a number of issues that deterred many professionals from adopting VS 2013. Old products have been retooled, and new features are aimed at productivity enhancement and fixes to UI. Fully aligned with VS 2015, this guide walks you through the changes and helps you incorporate helpful new features into the way you work. <ul> <li>Discover new options for themes, displays, and settings</li> <li>Learn the new workflow and shortcuts to ASP.NET code</li> <li>Master improved debugging and unit testing support capabilities</li> <li>Exploit changes to Windows STORE apps, phone apps, Azure, and SharePoint</li> </ul>
INTRODUCTION xxxix <p><b>PART I: INTEGRATED DEVELOPMENT ENVIRONMENT 1</b></p> <p><b>CHAPTER 1: A QUICK TOUR 3</b></p> <p>Getting Started 3</p> <p>Installing Visual Studio 2015 3</p> <p>Running Visual Studio 2015 6</p> <p>Is Visual Studio Really Cloud Enabled? 7</p> <p>The Visual Studio IDE 10</p> <p>Developing, Building, Debugging, and Deploying Your First Application 12</p> <p>Summary 17</p> <p><b>CHAPTER 2: THE SOLUTION EXPLORER, TOOLBOX, AND PROPERTIES 19</b></p> <p>The Solution Explorer 20</p> <p>Previewing Files 22</p> <p>Common Tasks 23</p> <p>Adding Projects and Items 25</p> <p>Adding References 28</p> <p>Adding Service References 29</p> <p>Adding Connected Services 30</p> <p>Adding Analyzers 31</p> <p>Adding NuGet Packages 32</p> <p>The Toolbox 35</p> <p>Arranging Components 37</p> <p>Adding Components 38</p> <p>Properties 40</p> <p>Extending the Properties Window 42</p> <p>The Browsable Attribute 42</p> <p>DisplayName Attribute 43</p> <p>Description 43</p> <p>Category 43</p> <p>DefaultValue 44</p> <p>AmbientValue 44</p> <p>Summary 46</p> <p><b>CHAPTER 3: OPTIONS AND CUSTOMIZATIONS 47</b></p> <p>The Start Page 48</p> <p>Customizing the Start Page 49</p> <p>Window Layout 49</p> <p>Viewing Windows and Toolbars 50</p> <p>Docking 50</p> <p>Saving the Window Layout 53</p> <p>The Editor Space 55</p> <p>Navigating Open Items 57</p> <p>Fonts and Colors 58</p> <p>Visual Guides 59</p> <p>Full-Screen Mode 60</p> <p>Tracking Changes 61</p> <p>Other Options 62</p> <p>Keyboard Shortcuts 62</p> <p>Quick Launch 63</p> <p>Projects and Solutions 65</p> <p>Build and Run 66</p> <p>VB Options 67</p> <p>Importing and Exporting Settings 67</p> <p>Synchronized Settings 70</p> <p>Summary 71</p> <p><b>CHAPTER 4: THE VISUAL STUDIO WORKSPACE 73</b></p> <p>The Code Editor 73</p> <p>The Code Editor Window Layout 74</p> <p>Regions 75</p> <p>Outlining 75</p> <p>Code Formatting 76</p> <p>Navigating Forward/Backward 78</p> <p>Additional Code Editor Features 78</p> <p>Reference Highlighting 78</p> <p>Code Zooming 78</p> <p>Word Wrap 79</p> <p>Line Numbers 79</p> <p>Auto Brace Complete 80</p> <p>Split View 80</p> <p>Tear Away (Floating) Code Windows 81</p> <p>Duplicating Solution Explorer 82</p> <p>Creating Tab Groups 82</p> <p>Advanced Functionality 84</p> <p>Commenting/Uncommenting a Code Block 84</p> <p>Block Selection 84</p> <p>Multiline Editing 84</p> <p>The Clipboard Ring 85</p> <p>Full-Screen View 85</p> <p>Go to Defi nition 85</p> <p>Find All References 85</p> <p>Code Navigation 86</p> <p>Peek Definition 86</p> <p>Enhanced Scrollbar 87</p> <p>Navigate To 89</p> <p>The Command Window 91</p> <p>The Immediate Window 92</p> <p>The Class View 93</p> <p>The Error List 94</p> <p>The Object Browser 95</p> <p>The Document Outline Tool Window 96</p> <p>HTML Outlining 97</p> <p>Control Outlining 98</p> <p>Reorganizing Tool Windows 100</p> <p>Summary 101</p> <p><b>CHAPTER 5: FIND AND REPLACE AND HELP 103</b></p> <p>Quick Find/Replace 104</p> <p>Quick Find 104</p> <p>Quick Replace 105</p> <p>Find Options 106</p> <p>Find and Replace Options 106</p> <p>Find/Replace in Files 106</p> <p>Find in Files 107</p> <p>Find Dialog Options 108</p> <p>Regular Expressions 109</p> <p>Results Window 111</p> <p>Replace in Files 111</p> <p>Accessing Help 112</p> <p>Navigating and Searching the Help System 114</p> <p>Configuring the Help System 114</p> <p>Summary 115</p> <p><b>PART II: GETTING STARTED 117</b></p> <p><b>CHAPTER 6: SOLUTIONS, PROJECTS, AND ITEMS 119</b></p> <p>Solution Structure 120</p> <p>Solution File Format 121</p> <p>Solution Properties 122</p> <p>Common Properties 123</p> <p>Configuration Properties 124</p> <p>Project Types 126</p> <p>Project Files Format 128</p> <p>Project Properties 129</p> <p>Application 130</p> <p>Assembly Information 130</p> <p>User Account Control Settings 131</p> <p>Application Framework (Visual Basic Only) 132</p> <p>Compile (Visual Basic Only) 133</p> <p>Build (C# and F# Only) 135</p> <p>Build Events (C# and F# Only) 136</p> <p>Debug 137</p> <p>Start Action 137</p> <p>Start Options 137</p> <p>Enable Debuggers 137</p> <p>References (Visual Basic Only) 138</p> <p>Resources 139</p> <p>Services 140</p> <p>Settings 141</p> <p>Reference Paths (C# and F# Only) 142</p> <p>Signing 143</p> <p>My Extensions (Visual Basic Only) 144</p> <p>Security 144</p> <p>Publish 145</p> <p>Code Analysis 146</p> <p>Web Application Project Properties 147</p> <p>Web 148</p> <p>Silverlight Applications 148</p> <p>Package/Publish Web 149</p> <p>Package/Publish SQL 150</p> <p>Web Site Projects 151</p> <p>NuGet Packages 152</p> <p>NuGet Package Manager 152</p> <p>Package Manager Console 154</p> <p>Summary 154</p> <p><b>CHAPTER 7: INTELLISENSE AND BOOKMARKS 155</b></p> <p>IntelliSense Explained 155</p> <p>General IntelliSense 156</p> <p>IntelliSense and C++ 158</p> <p>Completing Words and Phrases 158</p> <p>In Context 159</p> <p>List Members 160</p> <p>Suggestion Mode 160</p> <p>Stub Completion 161</p> <p>Generate From Usage 163</p> <p>Parameter Information 165</p> <p>Quick Info 166</p> <p>JavaScript IntelliSense 166</p> <p>The JavaScript IntelliSense Context 167</p> <p>Referencing Another JavaScript File 167</p> <p>XAML IntelliSense 168</p> <p>IntelliSense Options 169</p> <p>General Options 169</p> <p>Statement Completion 171</p> <p>C#-Specific Options 171</p> <p>Extended IntelliSense 172</p> <p>Code Snippets 173</p> <p>XML Comments 173</p> <p>Adding Your Own IntelliSense 173</p> <p>Bookmarks and the Bookmark Window 173</p> <p>Summary 176</p> <p><b>CHAPTER 8: CODE SNIPPETS AND REFACTORING 177</b></p> <p>Code Snippets Revealed 178</p> <p>Storing Code Blocks in the Toolbox 178</p> <p>Code Snippets 179</p> <p>Using Snippets in C# 179</p> <p>Using Snippets in VB 181</p> <p>Surround With Snippet 182</p> <p>Code Snippets Manager 183</p> <p>Creating Snippets 184</p> <p>Reviewing Existing Snippets 184</p> <p>Distributing Code Snippets 188</p> <p>Accessing Refactoring Support 189</p> <p>Refactoring Actions 189</p> <p>Extract Method 190</p> <p>Encapsulate Field 191</p> <p>Extract Interface 192</p> <p>Change Signature 193</p> <p>Inline and Explaining Variables 194</p> <p>Rename 195</p> <p>Generate Method Stub 195</p> <p>Organize Usings 196</p> <p>Summary 197</p> <p><b>CHAPTER 9: SERVER EXPLORER 199</b></p> <p>Server Connections 200</p> <p>Event Logs 201</p> <p>Management Classes 204</p> <p>Management Events 206</p> <p>Message Queues 210</p> <p>Performance Counters 213</p> <p>Services 217</p> <p>Data Connections 218</p> <p>SharePoint Connections 219</p> <p>Summary 220</p> <p><b>CHAPTER 10: MODELING WITH THE CLASS DESIGNER 221</b></p> <p>Creating a Class Diagram 222</p> <p>The Design Surface 223</p> <p>The Toolbox 224</p> <p>Entities 224</p> <p>Connectors 225</p> <p>The Class Details 226</p> <p>The Properties Window 227</p> <p>Layout 228</p> <p>Exporting Diagrams 229</p> <p>Code Generation and Refactoring 229</p> <p>Drag-and-Drop Code Generation 229</p> <p>IntelliSense Code Generation 232</p> <p>Refactoring with the Class Designer 232</p> <p>Summary 233</p> <p><b>PART III: DIGGING DEEPER 235</b></p> <p><b>CHAPTER 11: UNIT TESTING 237</b></p> <p>Your First Test Case 238</p> <p>Identifying Tests Using Attributes 243</p> <p>TestClass 243</p> <p>TestMethod 244</p> <p>Additional Test Attributes 244</p> <p>Description 244</p> <p>Owner 244</p> <p>Priority 244</p> <p>TestCategories 244</p> <p>WorkItems 245</p> <p>Ignore 245</p> <p>Timeout 245</p> <p>Unit Tests and Code Lens 246</p> <p>Asserting the Facts 248</p> <p>The Assert Class 248</p> <p>The StringAssert Class 249</p> <p>The CollectionAssert Class 249</p> <p>The ExpectedException Attribute 249</p> <p>Initializing and Cleaning Up 251</p> <p>TestInitialize and TestCleanup 251</p> <p>ClassInitialize and ClassCleanup 251</p> <p>AssemblyInitialize and AssemblyCleanup 252</p> <p>Testing Context 252</p> <p>Data 253</p> <p>Writing Test Output 255</p> <p>Advanced Unit Testing 257</p> <p>Custom Properties 257</p> <p>Testing Private Members 258</p> <p>IntelliTest 259</p> <p>Summary 262</p> <p><b>CHAPTER 12: DOCUMENTATION WITH XML COMMENTS 263</b></p> <p>Inline Commenting 264</p> <p>XML Comments 265</p> <p>Adding XML Comments 265</p> <p>XML Comment Tags 266</p> <p>The <c> Tag 266</p> <p>The <code> Tag 267</p> <p>The <example> Tag 267</p> <p>The <exception> Tag 268</p> <p>The <include> Tag 269</p> <p>The <list> Tag 271</p> <p>The <para> Tag 272</p> <p>The <param> Tag 272</p> <p>The <paramref> Tag 273</p> <p>The <permission> Tag 274</p> <p>The <remarks> Tag 274</p> <p>The <returns> Tag 275</p> <p>The <see> Tag 276</p> <p>The <seealso> Tag 276</p> <p>The <summary> Tag 277</p> <p>The <typeparam> Tag 277</p> <p>The <typeparamref> Tag 278</p> <p>The <value> Tag 279</p> <p>Using XML Comments 279</p> <p>IntelliSense Information 281</p> <p>Generating Documentation with GhostDoc 281</p> <p>Compiling Documentation with Sandcastle 282</p> <p>Task List Comments 286</p> <p>Summary 288</p> <p><b>CHAPTER 13: CODE CONSISTENCY TOOLS 289</b></p> <p>Source Control 289</p> <p>Selecting a Source Control Repository 290</p> <p>Environment Settings 291</p> <p>Accessing Source Control 291</p> <p>Adding the Solution 291</p> <p>Solution Explorer 293</p> <p>Changes 293</p> <p>Merging Changes 294</p> <p>History 296</p> <p>Summary 297</p> <p><b>CHAPTER 14: CODE GENERATION WITH T4 299</b></p> <p>Creating a T4 Template 300</p> <p>T4 Building Blocks 303</p> <p>Expression Blocks 304</p> <p>Statement Blocks 304</p> <p>Class Feature Blocks 306</p> <p>How T4 Works 307</p> <p>T4 Directives 310</p> <p>Template Directive 310</p> <p>Output Directive 311</p> <p>Assembly Directive 311</p> <p>Import Directive 312</p> <p>Include Directive 313</p> <p>Troubleshooting 313</p> <p>Design-Time Errors 314</p> <p>Compiling Transformation Errors 314</p> <p>Executing Transformation Errors 315</p> <p>Generated Code Errors 315</p> <p>Generating Code Assets 316</p> <p>Runtime Text Templates 319</p> <p>Using Runtime Text Templates 321</p> <p>Differences between Runtime Text Templates and Standard T4 Templates 324</p> <p>Tips and Tricks 325</p> <p>Summary 326</p> <p><b>CHAPTER 15: PROJECT AND ITEM TEMPLATES 327</b></p> <p>Creating Templates 327</p> <p>Item Template 328</p> <p>Project Template 332</p> <p>Template Structure 333</p> <p>Template Parameters 335</p> <p>Template Locations 336</p> <p>Extending Templates 337</p> <p>Template Project Setup 337</p> <p>IWizard 337</p> <p>Generating the Extended Project Template 342</p> <p>Starter Kits 343</p> <p>Online Templates 344</p> <p>Summary 345</p> <p><b>CHAPTER 16: LANGUAGE-SPECIFIC FEATURES 347</b></p> <p>Hitting a Nail with the Right Hammer 348</p> <p>Imperative 348</p> <p>Declarative 348</p> <p>Dynamic 349</p> <p>Functional 349</p> <p>What’s It All Mean? 350</p> <p>A Tale of Two Languages 351</p> <p>.NET Compiler Platform (Roslyn) 351</p> <p>The Compiler API 352</p> <p>The Diagnostic API 353</p> <p>Workspaces API 353</p> <p>F# 353</p> <p>Your First F# Program 353</p> <p>Exploring F# Language Features 357</p> <p>Type Providers 359</p> <p>Query Expressions 360</p> <p>Auto-Implemented Properties 360</p> <p>Summary 361</p> <p><b>PART IV: RICH CLIENT APPLICATIONS 363</b></p> <p><b>CHAPTER 17: WINDOWS FORMS APPLICATIONS 365</b></p> <p>Getting Started 365</p> <p>The Windows Form 366</p> <p>Appearance Properties 368</p> <p>Layout Properties 369</p> <p>Window Style Properties 369</p> <p>Form Design Preferences 369</p> <p>Adding and Positioning Controls 371</p> <p>Vertically Aligning Text Controls 373</p> <p>Automatic Positioning of Multiple Controls 374</p> <p>Tab Order and Layering Controls 375</p> <p>Locking Control Design 376</p> <p>Setting Control Properties 376</p> <p>Service-Based Components 377</p> <p>Smart Tag Tasks 378</p> <p>Container Controls 379</p> <p>Panel and SplitContainer 379</p> <p>FlowLayoutPanel 380</p> <p>TableLayoutPanel 381</p> <p>Docking and Anchoring Controls 382</p> <p>Summary 383</p> <p><b>CHAPTER 18: WINDOWS PRESENTATION FOUNDATION (WPF) 385</b></p> <p>What Is WPF? 386</p> <p>Getting Started with WPF 387</p> <p>XAML Fundamentals 389</p> <p>The WPF Controls 390</p> <p>The WPF Layout Controls 392</p> <p>The WPF Designer and XAML Editor 394</p> <p>Working with the XAML Editor 396</p> <p>Working with the WPF Designer 396</p> <p>The Properties Tool Window 399</p> <p>Data Binding Features 405</p> <p>Styling Your Application 410</p> <p>Windows Forms Interoperability 413</p> <p>Hosting a WPF Control in Windows Forms 413</p> <p>Hosting a Windows Forms Control in WPF 415</p> <p>Debugging with the WPF Visualizer 416</p> <p>Summary 418</p> <p><b>CHAPTER 19: OFFICE BUSINESS APPLICATIONS 419</b></p> <p>Choosing an Offi ce Project Type 420</p> <p>Document-Level Customizations 421</p> <p>Application-Level Add-Ins 421</p> <p>Creating a Document-Level Customization 422</p> <p>Your First VSTO Project 422</p> <p>Protecting the Document Design 426</p> <p>Adding an Actions Pane 427</p> <p>Creating an Application Add-In 429</p> <p>Some Outlook Concepts 429</p> <p>Creating an Outlook Form Region 430</p> <p>Debugging Office Applications 434</p> <p>Unregistering an Add-In 434</p> <p>Disabled Add-Ins 436</p> <p>Deploying Office Applications 437</p> <p>Summary 438</p> <p><b>CHAPTER 20: WINDOWS STORE APPLICATIONS 439</b></p> <p>What Is a Windows Store Application? 440</p> <p>Content before Chrome 441</p> <p>Snap and Scale 441</p> <p>Semantic Zoom 441</p> <p>Contracts 442</p> <p>Tiles 442</p> <p>Embracing the Cloud 442</p> <p>Creating a Windows Store Application 443</p> <p>The Windows 8 Simulator 446</p> <p>Interaction Mode 447</p> <p>Two-Finger Gestures 447</p> <p>Device Characteristics 447</p> <p>Location 448</p> <p>Screenshots 449</p> <p>Network Simulation 449</p> <p>Your Windows Store Application 449</p> <p>.NET Native Compilation 451</p> <p>Compiling Using .NET Native Tools 452</p> <p>Summary 453</p> <p><b>CHAPTER 21: WINDOWS PHONE 455</b></p> <p>Creating a Windows Phone Project 455</p> <p>Debugging Your Application 458</p> <p>Using the Windows Phone Emulator 459</p> <p>Deploying to a Real Phone 460</p> <p>Phone Developer Power Tools 463</p> <p>Application Verifi er 464</p> <p>Performance Monitor 466</p> <p>Performance Recorder 467</p> <p>Summary 468</p> <p><b>CHAPTER 22: UNIVERSAL APPS 469</b></p> <p>Portable Class Library 470</p> <p>Shared Projects 474</p> <p>Universal Windows Apps 474</p> <p>Summary 479</p> <p><b>PART V: WEB APPLICATIONS 481</b></p> <p><b>CHAPTER 23: ASP.NET WEB FORMS 483</b></p> <p>Web Application Versus Web Site Projects 484</p> <p>Creating Web Projects 485</p> <p>Creating a Web Site Project 485</p> <p>Creating a Web Application Project 489</p> <p>Designing Web Forms 492</p> <p>The HTML Designer 492</p> <p>Positioning Controls and HTML Elements 495</p> <p>Formatting Controls and HTML Elements 497</p> <p>CSS Tools 499</p> <p>Validation Tools 503</p> <p>Web Controls 505</p> <p>Navigation Components 505</p> <p>User Authentication 506</p> <p>Data Components 508</p> <p>Data Source Controls 508</p> <p>Data View Controls 510</p> <p>Data Helper Controls 511</p> <p>Web Parts 511</p> <p>Master Pages 512</p> <p>Rich Client-Side Development 514</p> <p>Developing with JavaScript 514</p> <p>Working with ASP.NET AJAX 516</p> <p>Summary 518</p> <p><b>CHAPTER 24: ASP.NET MVC 519</b></p> <p>Model View Controller 520</p> <p>Getting Started with ASP.NET MVC 521</p> <p>Choosing a Model 524</p> <p>Controllers and Action Methods 525</p> <p>MVC Scaffolding 525</p> <p>Rendering a UI with Views 528</p> <p>Advanced MVC 536</p> <p>Routing 536</p> <p>Action Method Parameters 540</p> <p>Model Binders 542</p> <p>Areas 544</p> <p>Validation 546</p> <p>Partial Views 548</p> <p>Dynamic Data Templates 549</p> <p>Display Templates 549</p> <p>Edit Templates 551</p> <p>jQuery 552</p> <p>ASP.NET MVC 6 (and ASP.NET 5) 554</p> <p>Summary 558</p> <p><b>CHAPTER 25: SILVERLIGHT 559</b></p> <p>What Is Silverlight? 560</p> <p>Getting Started with Silverlight 561</p> <p>Navigation Framework 568</p> <p>Theming 569</p> <p>Enabling Running Out of Browser 571</p> <p>Summary 575</p> <p><b>CHAPTER 26: SHAREPOINT 577</b></p> <p>SharePoint Execution Models 578</p> <p>Farm Solution 578</p> <p>Sandbox Solution 578</p> <p>App Model 579</p> <p>Preparing the Development Environment 580</p> <p>Exploring SharePoint 2013 581</p> <p>Creating a SharePoint Project 583</p> <p>Building Custom SharePoint Components 587</p> <p>Developing Web Parts 587</p> <p>Creating Content Types and Lists 588</p> <p>Adding Event Receivers 592</p> <p>Creating SharePoint Workflows 593</p> <p>Working with Features 595</p> <p>Packaging and Deployment 596</p> <p>Summary 599</p> <p><b>CHAPTER 27: WINDOWS AZURE 601</b></p> <p>The Windows Azure Platform 602</p> <p>The Compute Emulator 604</p> <p>Table, Blob, and Queue Storage 606</p> <p>Application Deployment 610</p> <p>SQL Azure 613</p> <p>AppFabric 614</p> <p>Service Bus 615</p> <p>Access Control Service 615</p> <p>Azure Mobile Services 615</p> <p>Azure Websites 616</p> <p>Azure Virtual Machines 616</p> <p>Connectivity 617</p> <p>Endpoints 617</p> <p>Virtual Network 617</p> <p>Summary 618</p> <p><b>PART VI: DATA 619</b></p> <p><b>CHAPTER 28: VISUAL DATABASE TOOLS 621</b></p> <p>Database Windows in Visual Studio 2015 622</p> <p>Server Explorer 623</p> <p>Table Editing 625</p> <p>Relationship Editing 626</p> <p>Views, Stored Procedures, and Functions 627</p> <p>The Data Sources Window 627</p> <p>SQL Server Object Explorer 628</p> <p>Editing Data 630</p> <p>Summary 631</p> <p><b>CHAPTER 29: DATASETS AND DATABINDING 633</b></p> <p>DataSets Overview 634</p> <p>Adding a Data Source 635</p> <p>The DataSet Designer 636</p> <p>Binding Data 639</p> <p>BindingSource 641</p> <p>BindingNavigator 644</p> <p>Data Source Selections 647</p> <p>Saving Changes 650</p> <p>Inserting New Items 652</p> <p>Validation 653</p> <p>Customized DataSets 655</p> <p>BindingSource Chains and the DataGridView 657</p> <p>Working with Data Sources 659</p> <p>The Web Service Data Source 661</p> <p>Summary 663</p> <p><b>CHAPTER 30: LANGUAGE INTEGRATED QUERIES (LINQ) 665</b></p> <p>LINQ Providers 666</p> <p>Old-School Queries 666</p> <p>Query Pieces 669</p> <p>From 669</p> <p>Select 670</p> <p>Where 671</p> <p>Group By 671</p> <p>Custom Projections 672</p> <p>Order By 673</p> <p>Debugging and Execution 674</p> <p>LINQ to XML 675</p> <p>VB XML Literals 677</p> <p>Creating XML with LINQ 677</p> <p>Expression Holes 678</p> <p>Querying XML 680</p> <p>Schema Support 681</p> <p>LINQ to SQL 683</p> <p>Creating the Object Model 683</p> <p>Querying with LINQ to SQL 686</p> <p>Inserts, Updates, and Deletes 687</p> <p>Stored Procedures 688</p> <p>Binding LINQ to SQL Objects 691</p> <p>Summary 693</p> <p><b>CHAPTER 31: THE ADO.NET ENTITY FRAMEWORK 695</b></p> <p>What Is the Entity Framework? 696</p> <p>Comparison with LINQ to SQL 696</p> <p>Entity Framework Concepts 697</p> <p>Getting Started 697</p> <p>Creating an Entity Model 698</p> <p>The Entity Data Model Wizard 698</p> <p>The Entity Framework Designer 702</p> <p>Creating/Modifying Entities 706</p> <p>Changing Property Names 706</p> <p>Adding Properties to an Entity 707</p> <p>Creating Complex Types 708</p> <p>Creating an Entity 708</p> <p>Creating/Modifying Entity Associations 710</p> <p>Entity Inheritance 711</p> <p>Validating an Entity Model 711</p> <p>Updating an Entity Model with Database Changes 712</p> <p>Querying the Entity Model 712</p> <p>LINQ to Entities Overview 713</p> <p>Getting an Object Context 713</p> <p>CRUD Operations 714</p> <p>Data Retrieval 714</p> <p>Saving Data 716</p> <p>Navigating Entity Associations 718</p> <p>Advanced Functionality 719</p> <p>Updating a Database from an Entity Model 720</p> <p>Adding Business Logic to Entities 720</p> <p>Plain Old CLR Objects (POCO) 720</p> <p>Summary 720</p> <p><b>CHAPTER 32: REPORTING 721</b></p> <p>Getting Started with Reporting 721</p> <p>Designing Reports 723</p> <p>Defining Data Sources 725</p> <p>Reporting Controls 727</p> <p>Text Box 727</p> <p>Line/Rectangle 729</p> <p>Table 729</p> <p>Matrix 733</p> <p>List 734</p> <p>Image 735</p> <p>Subreport 736</p> <p>Chart 736</p> <p>Gauge 738</p> <p>Map 741</p> <p>Data Bar 741</p> <p>Sparkline 742</p> <p>Indicator 743</p> <p>Expressions, Placeholders, and Aggregates 743</p> <p>Custom Code 747</p> <p>Report Layout 751</p> <p>Subreports 754</p> <p>The Report Wizard 756</p> <p>Rendering Reports 757</p> <p>The Report Viewer Controls 757</p> <p>Generating the Report 758</p> <p>Rendering Reports to Different Formats 759</p> <p>Deploying Reports 761</p> <p>Summary 761</p> <p><b>PART VII: APPLICATION SERVICES 763</b></p> <p><b>CHAPTER 33: WINDOWS COMMUNICATION FOUNDATION (WCF) 765</b></p> <p>What Is WCF? 766</p> <p>Getting Started 766</p> <p>Defining Contracts 767</p> <p>Creating the Service Contract 768</p> <p>Creating the Data Contract 770</p> <p>Configuring WCF Service Endpoints 772</p> <p>Hosting WCF Services 777</p> <p>Consuming a WCF Service 782</p> <p>Summary 787</p> <p><b>CHAPTER 34: WINDOWS WORKFLOW FOUNDATION (WF) 789</b></p> <p>What Is Windows Workflow Foundation? 790</p> <p>Why Use Windows Workflow? 790</p> <p>Workflow Concepts 791</p> <p>Activities 791</p> <p>Control Flow Activities 793</p> <p>Expressions 793</p> <p>Workflow Run Time/Scheduler 793</p> <p>Bookmarks 793</p> <p>Persistence 794</p> <p>Tracking 794</p> <p>Getting Started 795</p> <p>The Workflow Foundation Designer 797</p> <p>Creating a Workflow 801</p> <p>Designing a Workflow 801</p> <p>Writing Code Activities 804</p> <p>Executing a Workflow 806</p> <p>Debugging Workflows 808</p> <p>Testing Workflows 809</p> <p>Summary 809</p> <p><b>CHAPTER 35: CLIENT APPLICATION SERVICES 811</b></p> <p>Client Services 812</p> <p>Role Authorization 815</p> <p>User Authentication 817</p> <p>Settings 819</p> <p>Login Form 824</p> <p>Offline Support 827</p> <p>Summary 829</p> <p><b>CHAPTER 36: SYNCHRONIZATION SERVICES 831</b></p> <p>Occasionally Connected Applications 832</p> <p>Server Direct 832</p> <p>Getting Started with Synchronization Services 836</p> <p>Synchronization Services over N-Tiers 840</p> <p>Summary 841</p> <p><b>PART VIII: CONFIGURATION AND RESOURCES 843</b></p> <p><b>CHAPTER 37: CONFIGURATION FILES 845</b></p> <p>.Config Files 845</p> <p>Machine.Config 846</p> <p>Web.Config 846</p> <p>Transformations 846</p> <p>App.Config 848</p> <p>Security.Config 848</p> <p>ApplicationHost.Config 848</p> <p>Configuration Schema 849</p> <p>Section: configurationSections 849</p> <p>Section: startup 850</p> <p>Section: runtime 850</p> <p>Section: system.runtime.remoting 851</p> <p>Section: system.net 851</p> <p>Section: cryptographySettings 852</p> <p>Section: system.diagnostics 852</p> <p>Section: system.web 853</p> <p>webServices 853</p> <p>Section: compiler 854</p> <p>Configuration Attributes 854</p> <p>Application Settings 855</p> <p>Using appSettings 855</p> <p>Project Settings 856</p> <p>Dynamic Properties 857</p> <p>Custom Configuration Sections 859</p> <p>IntelliSense 863</p> <p>User Settings 864</p> <p>Referenced Projects with Settings 865</p> <p>Summary 867</p> <p><b>CHAPTER 38: CONNECTION STRINGS 869</b></p> <p>Connection String Wizard 869</p> <p>SQL Server Format 875</p> <p>In-Code Construction 877</p> <p>Encrypting Connection Strings 878</p> <p>LocalDB 881</p> <p>Azure SQL Database 881</p> <p>Summary 884</p> <p><b>CHAPTER 39: RESOURCE FILES 885</b></p> <p>What Are Resources? 885</p> <p>Text File Resources 886</p> <p>Resx Resource Files 887</p> <p>Binary Resources 888</p> <p>Adding Resources 888</p> <p>Embedding Files as Resources 889</p> <p>Naming Resources 890</p> <p>Accessing Resources 890</p> <p>Designer Files 891</p> <p>Resourcing Your Application 892</p> <p>Control Images 894</p> <p>Satellite Resources 895</p> <p>Cultures 895</p> <p>Creating Culture Resources 895</p> <p>Loading Culture Resource Files 896</p> <p>Satellite Culture Resources 897</p> <p>Accessing Specifi cs 897</p> <p>Bitmap and Icon Loading 897</p> <p>Cross-Assembly Referencing 898</p> <p>ComponentResourceManager 898</p> <p>Coding Resource Files 899</p> <p>ResourceReader and ResourceWriter 900</p> <p>ResxResourceReader and ResxResourceWriter 900</p> <p>Custom Resources 901</p> <p>Summary 904</p> <p><b>PART IX: DEBUGGING 905</b></p> <p><b>CHAPTER 40: USING THE DEBUGGING WINDOWS 907</b></p> <p>The Code Window 907</p> <p>Breakpoints 908</p> <p>DataTips 908</p> <p>The Breakpoints Window 908</p> <p>The Output Window 909</p> <p>The Immediate Window 910</p> <p>The Watch Windows 912</p> <p>QuickWatch 912</p> <p>Watch Windows 1–4 913</p> <p>Autos and Locals 913</p> <p>The Code Execution Windows 913</p> <p>Call Stack 914</p> <p>Threads 914</p> <p>Modules 915</p> <p>Processes 915</p> <p>The Memory Windows 916</p> <p>Memory Windows 1–4 916</p> <p>Disassembly 917</p> <p>Registers 918</p> <p>The Parallel Debugging Windows 918</p> <p>Parallel Stacks 919</p> <p>Parallel Tasks 921</p> <p>Exceptions 921</p> <p>Customizing the Exception Assistant 923</p> <p>Summary 925</p> <p><b>CHAPTER 41: DEBUGGING WITH BREAKPOINTS 927</b></p> <p>Breakpoints 927</p> <p>Setting a Breakpoint 928</p> <p>Simple Breakpoints 928</p> <p>Function Breakpoints 929</p> <p>Address Breakpoint 930</p> <p>Adding Break Conditions 930</p> <p>Condition 930</p> <p>Hit Count 932</p> <p>Filter 932</p> <p>Working with Breakpoints 933</p> <p>Deleting Breakpoints 933</p> <p>Disabling Breakpoints 933</p> <p>Labeling Breakpoints 934</p> <p>Import and Export of Breakpoints 935</p> <p>Tracepoints 935</p> <p>Creating a Tracepoint 935</p> <p>Output Messages 936</p> <p>Execution Control 936</p> <p>Stepping through Code 936</p> <p>Stepping Over (F10) 937</p> <p>Stepping Into (F11) 937</p> <p>Stepping Out (Shift+F11) 937</p> <p>Step Filtering 937</p> <p>Moving the Execution Point 938</p> <p>Edit and Continue 938</p> <p>Rude Edits 939</p> <p>Stop Applying Changes 939</p> <p>Summary 939</p> <p><b>CHAPTER 42: DATATIPS, DEBUG PROXIES, AND VISUALIZERS 941</b></p> <p>DataTips 942</p> <p>Debugger Attributes 943</p> <p>DebuggerBrowsable 943</p> <p>DebuggerDisplay 944</p> <p>DebuggerHidden 945</p> <p>DebuggerStepThrough 946</p> <p>DebuggerNonUserCode 947</p> <p>DebuggerStepperBoundary 947</p> <p>Type Proxies 947</p> <p>Raw View 949</p> <p>Visualizers 950</p> <p>Advanced Techniques 953</p> <p>Saving Changes to Your Object 953</p> <p>Summary 955</p> <p><b>CHAPTER 43: DEBUGGING WEB APPLICATIONS 957</b></p> <p>Debugging Server-Side ASP.NET Code 958</p> <p>Web Application Exceptions 960</p> <p>Edit and Continue 962</p> <p>Error Handling 962</p> <p>Page-Level Errors 963</p> <p>Application-Level Errors 963</p> <p>Debugging Client-Side JavaScript 964</p> <p>Setting Breakpoints in JavaScript Code 964</p> <p>Debugging Dynamically Generated JavaScript 965</p> <p>Debugging ASP.NET AJAX JavaScript 966</p> <p>Tracing 967</p> <p>Page-Level Tracing 967</p> <p>Application-Level Tracing 968</p> <p>Trace Output 969</p> <p>The Trace Viewer 970</p> <p>Custom Trace Output 970</p> <p>Health Monitoring 970</p> <p>Summary 972</p> <p><b>CHAPTER 44: ADVANCED DEBUGGING TECHNIQUES 975</b></p> <p>Start Actions 976</p> <p>Debugging with Code 978</p> <p>The Debugger Class 978</p> <p>The Debug and Trace Classes 979</p> <p>Debugging Running Applications 981</p> <p>Attaching to a Windows Process 981</p> <p>Attaching to a Web Application 982</p> <p>Remote Debugging 983</p> <p>Diagnostic Tools 985</p> <p>IntelliTrace 985</p> <p>Memory and CPU Usage 988</p> <p>Code Map Debugging 990</p> <p>Expanding the Code Map 991</p> <p>Adding Notes 992</p> <p>.NET Framework Source 993</p> <p>Multithreaded and Parallelized Application Debugging 994</p> <p>Debugging SQL Server Stored Procedures 995</p> <p>Mixed-Mode Debugging 996</p> <p>Postmortem Debugging 997</p> <p>Generating Dump Files 997</p> <p>Debugging Dump Files 998</p> <p>Summary 1000</p> <p><b>PART X: BUILD AND DEPLOYMENT 1001</b></p> <p><b>CHAPTER 45: UPGRADING WITH VISUAL STUDIO 2015 1003</b></p> <p>Upgrading from Recent Visual Studio Versions 1004</p> <p>Upgrading to .NET Framework 4.6 1006</p> <p>Summary 1008</p> <p><b>CHAPTER 46: BUILD CUSTOMIZATION 1009</b></p> <p>General Build Options 1009</p> <p>Manual Dependencies 1012</p> <p>The Visual Basic Compile Page 1013</p> <p>Advanced Compiler Settings 1015</p> <p>Optimizations 1015</p> <p>Compilation Constants 1016</p> <p>Build Events 1016</p> <p>C# Build Pages 1018</p> <p>MSBuild 1020</p> <p>How Visual Studio Uses MSBuild 1020</p> <p>The MSBuild Schema 1023</p> <p>Items 1024</p> <p>Properties 1024</p> <p>Targets 1024</p> <p>Tasks 1024</p> <p>Assembly Versioning via MSBuild Tasks 1025</p> <p>Summary 1026</p> <p><b>CHAPTER 47: ASSEMBLY VERSIONING AND SIGNING 1027</b></p> <p>Assembly Naming 1028</p> <p>Version Consistency 1030</p> <p>Strongly Named Assemblies 1032</p> <p>The Global Assembly Cache 1032</p> <p>Signing an Assembly 1033</p> <p>Summary 1035</p> <p><b>CHAPTER 48: OBFUSCATION, APPLICATION MONITORING, AND MANAGEMENT 1037</b></p> <p>The IL Disassembler 1038</p> <p>Decompilers 1039</p> <p>Obfuscating Your Code 1041</p> <p>Dotfuscator and Analytics 1041</p> <p>Obfuscation Attributes 1046</p> <p>ObfuscationAssemblyAttribute 1047</p> <p>ObfuscationAttribute 1047</p> <p>Words of Caution 1049</p> <p>Reflection 1049</p> <p>Strongly Named Assemblies 1049</p> <p>Debugging with Delayed Signing 1050</p> <p>Application Monitoring and Management 1051</p> <p>Tamper Defense 1052</p> <p>Application Instrumentation and Analytics 1053</p> <p>Summary 1056</p> <p><b>CHAPTER 49: PACKAGING AND DEPLOYMENT 1057</b></p> <p>Windows Installer XML Toolset 1058</p> <p>Building an Installer 1059</p> <p>Using Heat to Create Fragments 1062</p> <p>The Service Installer 1065</p> <p>ClickOnce 1066</p> <p>One Click to Deploy 1067</p> <p>One Click to Update 1072</p> <p>Summary 1074</p> <p><b>CHAPTER 50: WEB APPLICATION DEPLOYMENT 1075</b></p> <p>Web Deployment 1076</p> <p>Publishing a Web Application 1076</p> <p>Publishing to Azure 1078</p> <p>Web Project Installers 1079</p> <p>The Web Platform Installer 1081</p> <p>Extending the Web Platform Installer 1082</p> <p>Summary 1086</p> <p><b>PART XI: CUSTOMIZING AND EXTENDING VISUAL STUDIO 1087</b></p> <p><b>CHAPTER 51: THE AUTOMATION MODEL 1089</b></p> <p>Visual Studio Extensibility Options 1090</p> <p>The Visual Studio Automation Model 1090</p> <p>An Overview of the Automation Model 1090</p> <p>Solutions and Projects 1092</p> <p>Windows and Documents 1093</p> <p>Commands 1095</p> <p>Debugger 1096</p> <p>Events 1097</p> <p>Summary 1097</p> <p><b>CHAPTER 52: VSPACKAGES 1099</b></p> <p>Developing a VSPackage Extension 1100</p> <p>The VSPackage Wizard 1100</p> <p>Project Structure 1104</p> <p>Command Table File 1104</p> <p>Handling Commands 1106</p> <p>Testing Your Package 1106</p> <p>Creating a Tool Window 1107</p> <p>Deploying VSPackages 1110</p> <p>Summary 1113</p> <p><b>CHAPTER 53: MANAGED EXTENSIBILITY FRAMEWORK (MEF) 1115</b></p> <p>Getting Started with MEF 1116</p> <p>Imports and Exports 1118</p> <p>Contracts 1119</p> <p>Catalogs 1121</p> <p>Advanced MEF 1122</p> <p>The Visual Studio Editor 1123</p> <p>The Text Model Subsystem 1123</p> <p>The Text View Subsystem 1124</p> <p>The Classification Subsystem 1125</p> <p>The Operations Subsystem 1125</p> <p>Extending the Editor 1125</p> <p>Editor Extension Points 1126</p> <p>Content Types 1127</p> <p>Classification Types and Formats 1127</p> <p>Margins 1128</p> <p>Tags 1128</p> <p>Adornments 1129</p> <p>Mouse Processors 1129</p> <p>Drop Handlers 1129</p> <p>Editor Options 1129</p> <p>IntelliSense 1130</p> <p>Editor Services 1131</p> <p>The Check Comment Highlighter Extension 1131</p> <p>Summary 1138</p> <p><b>PART XII: VISUAL STUDIO ENTERPRISE 1139</b></p> <p><b>CHAPTER 54: VISUAL STUDIO ENTERPRISE FOR ARCHITECTS 1141</b></p> <p>Modeling Projects 1142</p> <p>UML Diagrams 1142</p> <p>Use Case Diagrams 1143</p> <p>Activity Diagrams 1143</p> <p>Sequence Diagrams 1145</p> <p>Component Diagrams 1147</p> <p>Class Diagrams 1148</p> <p>UML Model Explorer 1148</p> <p>Using Layer Diagrams to Verify Application Architecture 1149</p> <p>Linking to Team Foundation Server 1151</p> <p>Exploring Code with Code Maps 1152</p> <p>Summary 1154</p> <p><b>CHAPTER 55: VISUAL STUDIO ENTERPRISE FOR DEVELOPERS 1155</b></p> <p>Code Metrics 1156</p> <p>Lines of Code 1156</p> <p>Depth of Inheritance 1157</p> <p>Class Coupling 1157</p> <p>Cyclomatic Complexity 1158</p> <p>Maintainability Index 1158</p> <p>Excluded Code 1158</p> <p>Code Analysis Tool 1158</p> <p>C/C++ Code Analysis Tool 1159</p> <p>Profiling Tools 1160</p> <p>Configuring Profiler Sessions 1161</p> <p>Reports 1162</p> <p>Standalone Profiler 1163</p> <p>IntelliTrace 1164</p> <p>Database Tools 1167</p> <p>Database Schemas 1167</p> <p>SQL-CLR Support 1169</p> <p>Database Refactoring 1171</p> <p>Schema Compare 1172</p> <p>Static Analysis 1173</p> <p>Transact-SQL Editor 1174</p> <p>Best Practices 1174</p> <p>Summary 1175</p> <p><b>CHAPTER 56: VISUAL STUDIO ENTERPRISE FOR TESTERS 1177</b></p> <p>Automated Tests 1178</p> <p>Web Performance Tests 1178</p> <p>Load Tests 1181</p> <p>Test Load Agent 1185</p> <p>Coded UI Test 1185</p> <p>Generic Tests 1186</p> <p>Ordered Test 1187</p> <p>Relating Code and Tests 1187</p> <p>Code Coverage 1187</p> <p>Visual Studio Test Management 1189</p> <p>Microsoft Test Manager 1189</p> <p>Testing Center 1190</p> <p>Lab Center 1193</p> <p>Summary 1194</p> <p><b>CHAPTER 57: TEAM FOUNDATION SERVER 1195</b></p> <p>Team Project 1196</p> <p>Process Templates 1197</p> <p>Work Item Tracking 1200</p> <p>Work Item Queries 1200</p> <p>Work Item Types 1202</p> <p>Adding Work Items 1202</p> <p>Work Item State 1203</p> <p>Excel and Project Integration 1203</p> <p>Excel 1204</p> <p>Project 1205</p> <p>Version Control 1206</p> <p>Working from Solution Explorer 1206</p> <p>Check Out 1207</p> <p>Check In 1207</p> <p>Resolve Conflicts 1209</p> <p>Working Offline 1210</p> <p>Label 1211</p> <p>History 1212</p> <p>Annotate 1213</p> <p>Shelve 1213</p> <p>Branch 1214</p> <p>Merge 1215</p> <p>Team Foundation Build 1215</p> <p>Reporting and Business Intelligence 1218</p> <p>Team Portal 1219</p> <p>Summary 1219</p> <p>INDEX 1221</p>
<p><b>About the author</b> <p><b>Bruce Johnson</b> is a partner at ObjectSharp Consulting and a 30-year veteran of the computer industry. For nearly 20 years, his projects have been on the leading edge of Windows technology. Bruce is a Microsoft Certified Trainer, a Microsoft MVP, and a frequent speaker at conferences and user groups. He has written several Wrox guides as well as columns and articles for numerous magazines.
<p><b>Master Visual Studio 2015</b> <p>The Visual Studio 2015 release includes significant new features geared toward enhancing your productivity, as well as new tools focused on cross-platform development. This comprehensive, programmer-to-programmer guide covers all the improved developer tools and brings you up to speed on the changes. Its unique IDE-centric approach reveals Visual Studio's many secrets, making it the perfect reference for both new developers and those upgrading from earlier versions. You will discover enhanced theme options, customization possibilities, shortcuts for generating ASP.NET code, improvements to app development, and much more–and be ready to apply them all. <p><i>Professional Visual Studio 2015:</i> <ul> <li>Walks you through all the changes and improvements in Visual Studio 2015, including Visual Studio 2015 Enterprise Edition</li> <li>Introduces new options for displays and settings as well as improved diagnostic, debugging, and unit testing support</li> <li>Explains how to take advantage of significant changes to the XAML editor for any XAML-based application</li> <li>Demonstrates the latest tools for designing, packaging, and debugging Web applications, including ASP.NET vNext</li> <li>Teaches you to create universal apps that share a single code base and target both phone and tablet</li> <li>Covers the improvements and additions to Mark Azure<sup>™</sup> tools, including subscription integration with the Server Explorer</li> </ul> <p><b>Wrox Professional guides</b> are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job. <p>Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry from around the world.

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €