1. Trang chủ
  2. » Công Nghệ Thông Tin

professional visual studio 2013

1,1K 9,1K 18
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Professional Visual Studio 2013
Trường học University of Example
Chuyên ngành Computer Science
Thể loại Giáo trình
Năm xuất bản 2014
Thành phố Hanoi
Định dạng
Số trang 1.102
Dung lượng 43,34 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

➤ Part x build and dePloymentchaPter 45 Upgrading with Visual Studio 2013.. 949 chaPter 55 Visual Studio Ultimate for Developers.. But for 20 years, he has been working on projects tha

Trang 3

Professional Visual studio ® 2013

introduction .xliii

Part i integrated deVeloPment enVironment

chaPter 1 A Quick Tour 3

chaPter 2 The Solution Explorer, Toolbox, and Properties 15

chaPter 3 Options and Customizations 33

chaPter 4 The Visual Studio Workspace 51

chaPter 5 Find and Replace and Help 75

Part ii getting started chaPter 6 Solutions, Projects, and Items 89

chaPter 7 IntelliSense and Bookmarks 117

chaPter 8 Code Snippets and Refactoring 133

chaPter 9 Server Explorer 151

chaPter 10 Modeling with the Class Designer 167

Part iii digging deePer chaPter 11 Unit Testing 179

chaPter 12 Documentation with XML Comments 201

chaPter 13 Code Consistency Tools 223

chaPter 14 Code Generation with T4 235

chaPter 15 Project and Item Templates 259

chaPter 16 Language-Specific Features 277

Part iV rich client aPPlications chaPter 17 Windows Forms Applications 293

chaPter 18 Windows Presentation Foundation (WPF) 307

chaPter 19 Office Business Applications 333

chaPter 20 Windows Store Applications 349

Continues

Trang 4

chaPter 22 ASP NET MVC 395

chaPter 23 Silverlight 425

chaPter 24 Dynamic Data 439

chaPter 25 SharePoint 461

chaPter 26 Windows Azure 481

Part Vi data chaPter 27 Visual Database Tools 499

chaPter 28 DataSets and DataBinding 507

chaPter 29 Language Integrated Queries (LINQ) 533

chaPter 30 The ADO NET Entity Framework 559

chaPter 31 Reporting 581

Part Vii aPPlication serVices chaPter 32 Windows Communication Foundation (WCF) 617

chaPter 33 Windows Workflow Foundation (WF) 637

chaPter 34 Client Application Services 659

chaPter 35 Synchronization Services 677

chaPter 36 WCF RIA Services 687

Part Viii configuration and resources chaPter 37 Configuration Files 701

chaPter 38 Connection Strings 719

chaPter 39 Resource Files 729

Part ix debugging chaPter 40 Using the Debugging Windows 749

chaPter 41 Debugging with Breakpoints 767

chaPter 42 DataTips, Debug Proxies, and Visualizers 779

chaPter 43 Debugging Web Applications 791

chaPter 44 Advanced Debugging Techniques 807

Trang 5

Part x build and dePloyment

chaPter 45 Upgrading with Visual Studio 2013 829

chaPter 46 Build Customization 835

chaPter 47 Assembly Versioning and Signing 851

chaPter 48 Obfuscation, Application Monitoring, and Management 859

chaPter 49 Packaging and Deployment 879

chaPter 50 Web Application Deployment 893

Part xi customizing and extending Visual studio chaPter 51 The Automation Model 905

chaPter 52 Add-Ins 913

chaPter 53 Managed Extensibility Framework (MEF) 927

Part xii Visual studio ultimate chaPter 54 Visual Studio Ultimate for Architects 949

chaPter 55 Visual Studio Ultimate for Developers 961

chaPter 56 Visual Studio Ultimate for Testers 977

chaPter 57 Team Foundation Server 991

index .1013

Trang 7

Professional

Trang 9

Bruce Johnson

Trang 10

10475 Crosspoint Boulevard

Indianapolis, IN 46256

www.wiley.com

Copyright © 2014 by John Wiley & Sons, Inc., Indianapolis, Indiana

Published simultaneously in Canada

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means,

electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of

the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through

payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923,

(978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Permissions

Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or

online at http://www.wiley.com/go/permissions

Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect

to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without

limita-tion warranties of fitness for a particular purpose No warranty may be created or extended by sales or promolimita-tional materials

The advice and strategies contained herein may not be suitable for every situation This work is sold with the understanding

that the publisher is not engaged in rendering legal, accounting, or other professional services If professional assistance is

required, the services of a competent professional person should be sought Neither the publisher nor the author shall be liable

for damages arising herefrom The fact that an organization or Web site is referred to in this work as a citation and/or a

poten-tial source of further information does not mean that the author or the publisher endorses the information the organization or

Web site may provide or recommendations it may make Further, readers should be aware that Internet Web sites listed in this

work may have changed or disappeared between when this work was written and when it is read

For general information on our other products and services please contact our Customer Care Department within the

United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002

Wiley publishes in a variety of print and electronic formats and by print-on-demand Some material included with

stan-dard print versions of this book may not be included in e-books or in print-on-demand If this book refers to media such

as a CD or DVD that is not included in the version you purchased, you may download this material at http://book

support.wiley.com For more information about Wiley products, visit www.wiley.com

Library of Congress Control Number: 2014930419

Trademarks: Wiley, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or

regis-tered trademarks of John Wiley & Sons, Inc and/or its affiliates, in the United States and other countries, and may not be

used without written permission Visual Studio is a registered trademark of Microsoft Corporation All other trademarks

are the property of their respective owners John Wiley & Sons, Inc., is not associated with any product or vendor

men-tioned in this book

Trang 11

I’d like to thank my wife, Ali, and my four children, Kyle, Cameron, Gillian, and Curtis, for their love and support Throughout the process of writing this book, they were well-behaved and completely respectful of my time Okay, that’s not true at all But they are my loves and my life would be much less rich without them.

Trang 13

about the author

bruce Johnson is a partner at ObjectSharp Consulting and a 30-year veteran of the computer industry The first third of his career was spent doing “real work,” otherwise known as coding in the UNIX world But for 20 years, he has been working on projects that are at the leading edge of Windows technology, from C++ through Visual Basic to C#, and from thick client applications to websites to services

As well as having fun with building systems, Bruce has spoken hundreds of times at conferences and user groups throughout North America He has been a Microsoft Certified Trainer (MCT) for the past four years and he is a co-president of the Metro Toronto NET User Group He has also written columns and articles for numerous magazines While the quantity of the posts on his blog (http://blogs.objectsharp.com/author/bruce.aspx) has decreased recently, the activity on his Twitter account (http://www.twitter com/lacanuck) has shown a corresponding increase For all of this activity (or, perhaps, in spite of it), Bruce has been privileged to be recognized as a Microsoft MVP for the past eight years

Trang 15

Mary Beth Wakefield

freelancer editorial manager

Trang 17

to the outside, it might look like the writing of a book is an individual effort Having gone through this act of creation a number of times, I can tell you that nothing is further from the truth Yes, there is a lot of effort on the part of the author (and the feeling of joy you get as you hand in your last rewrite is quite palpable) But I can also tell you that without the rarely acknowledged efforts of the others involved in the editorial process, the book would never have made it to completion And if you, as the reader, take some-thing useful from this book, odds are that my editor, my technical reviewer, and the project editor are the reason why

I would especially like to thank everyone at Wrox who has helped me through this process In particular, thanks go out to Kelly Talbot, whose patience and attention to detail are quite impressive Thanks also go

to Andrew Moore, who did a great job making sure that the technical details of the book were accurate Finally, thanks to Charlotte Kughen, who had the unenviable chore of ensuring that I wasn’t writing in the passive voice and fixed it when I stopped writing so well The efforts of all of these individuals are what make the book possible and, hopefully, a success Thanks also to Mary James, who was kind enough to take

a chance on my ability to write

Trang 19

Part I: Integrated develoPment envIronment

Developing, Building, Debugging, and Deploying

Docking 37

Trang 20

Summary 50

Regions 52 Outlining 53

Summary 74

Trang 21

Summary 85

Part II: gettIng started

ChaPter 6: solutIons, ProjeCts,

Debug 104

Resources 106 Services 107 Settings 107

Signing 109

Trang 22

Security 110 Publish 111

Summary 132

Trang 23

CONTENTS

Entities 169 Connectors 170

Layout 172

Trang 24

Summary 176

Part III: dIggIng deePer

Data 192

Summary 222

Trang 25

CONTENTS

Differences between Runtime Text Templates and

Trang 26

Imperative 278 Declarative 278 Dynamic 278 Functional 279

Summary 290

Part Iv: rICh ClIent aPPlICatIons

Trang 27

CONTENTS

Summary 332

Application-Level Add-Ins 335

Trang 28

Creating an Application Add-In 340

Unregistering an Add-In 345 Disabled Add-Ins 346

Summary 348

Contracts 351 Tiles 351

Summary 359

Part v: Web aPPlICatIons

Trang 29

CONTENTS

Summary 392

Trang 30

Summary 479

Trang 31

CONTENTS

Part vI: data

Summary 506

BindingSource 514 BindingNavigator 516

Validation 522

Trang 32

LINQPad 556 Summary 557

Trang 33

Summary 614

Part vII: aPPlICatIon servICes

ChaPter 32: WIndoWs CommunICatIon FoundatIon (WCF) 617

Trang 34

Summary 697

Part vIII: ConFIguratIon and resourCes

Machine.Config 701 Web.Config 701 App.Config 702

Trang 35

CONTENTS

Security.Config 702 ApplicationHost.Config 702

LocalDB 727 Summary 728

Trang 36

ComponentResourceManager 740

Summary 745

Part Ix: debuggIng

Breakpoints 750 DataTips 750

QuickWatch 754

Threads 756 Modules 756 Processes 757

Disassembly 758 Registers 759

Trang 37

Tracepoints 773

Trang 38

Tracing 800

Summary 805

IntelliTrace 815

Summary 826

Trang 39

CONTENTS

Part x: buIld and dePloyment

ChaPter 45: uPgradIng WIth vIsual

Summary 833

MSBuild 844

Trang 40

Summary 878

ClickOnce 886

Summary 892

Summary 902

Part xI: CustomIzIng and extendIng vIsual studIo

Commands 910 Debugger 911 Events 912

Trang 41

CONTENTS

Testing Your Add-In 916

Deploying Add-Ins 926 Summary 926

Contracts 931 Catalogs 932

Summary 946

Part xII: vIsual studIo ultImate

ChaPter 54: vIsual studIo ultImate

Trang 42

Summary 990

Trang 43

Excel 998 Project 998

Trang 45

throughout Its hIstory, Visual Studio has incorporated the latest advances in Microsoft’s premier programming languages (Visual Basic and C#), and this version is no different But alongside support for language features comes continuing support for developers In theory, it is possible to create any NET application using tools as simple as Notepad and a command-line window But the typical developer would never think to do so The tools and utilities that come with Visual Studio do more to increase the productivity of developers than any other single piece of software currently available Visual Studio 2013 is

no different from previous versions in this respect It includes a host of improvements and new features that are aimed at making the life of a developer easier

Visual Studio 2013 is an enormous product no matter which way you look at it It can be intimidating to newcomers and difficult for even experienced NET developers to find what they need And that’s where this

book comes in Professional Visual Studio 2013 looks at every major aspect of this developer tool, showing

you how to harness each feature and offering advice about how best to utilize the various components effectively It shows you the building blocks that make up Visual Studio 2013, breaking the user interface down into manageable chunks for you to understand It then expands on each of these components with additional details about exactly how they work, both in isolation and in conjunction with other parts of Visual Studio 2013, along with tools that are not included in the out-of-the-box product, to make your development efforts even more efficient

Who thIs Book Is For

Professional Visual Studio 2013 is for developers who are new to Visual Studio as well as those

programmers who have some experience but want to learn about features they may have previously overlooked

Even if you are familiar with the way previous versions of Visual Studio worked, you may want to at least skim over Part I These chapters deal with the basic constructs that make up the user interface In the past, the basic interface didn’t change much from version to version But as soon as you launch Visual Studio

2013 for the first time, you’ll notice that the user interface has gone through some significant changes While you can get by without Part I, some of the changes in Visual Studio 2013 can make you a more efficient developer And, after all, that’s what you’re looking to get out of this book

If you’re just starting out, you’ll greatly benefit from the first part, where basic concepts are explained and you’re introduced to the user interface and how to customize it to suit your own style

What thIs Book covers

Microsoft Visual Studio 2013 is arguably the most advanced integrated development environment (IDE) available for programmers today It is based on a long history of programming languages and interfaces and has been influenced by many different variations on the theme of development environments

In Visual Studio 2012, Microsoft completely revamped the user interface for the IDE The changes in Visual Studio 2013 are not nearly as revolutionary Existing developers will find it, more or less, the same with some splashes of color But more important, newcomers to Visual Studio will find it easy to work with

This book covers the breadth of Visual Studio 2013 Along the way, you will become more familiar and comfortable with the interface

Ngày đăng: 11/04/2014, 09:44

TỪ KHÓA LIÊN QUAN

w