Contents

Image About the Authors

Image About the Technical Reviewer

Image Acknowledgments

Image Introduction

Image Chapter 1: Introduction

Aims

Changes

Work in Progress!

What We Will Cover

What We Won’t Cover

Downloadable Examples

.NET 4.5 Themes

Making Async Programming as Easy as Possible

Promoting NuGet as the Preferred Distribution and Update Mechanism

Supporting Emerging Standards and Technologies

Making It Easy to Develop on Different Devices and Other Platforms

Continuing the Move toward Openness

Visual Studio 2012 Editions

What Others Think of Visual Studio 2012 /.NET 4.5

Mitch Denny, Director at Unpedestrian

Brendan Forster, ASP.NET MVP and Code52 Coordinator

Richard Banks, MVP and Author of Microsoft Visual Studio 2012 First Look Cookbook

Phillip Laureano, Creator of Linfu framework

Steve Godbold (Technical Reviewer)

Alex Mackey (Author); MVP Internet Explorer: Development

William Tulloch (Author)

Mahesh Krishnan (Author)

Image Chapter 2: IDE Improvements

Compatibility with VS2010 SP1 Projects

Toolbar Changes

Quick Launch Box

Quick Launch Options

Search Improvements

Search Everywhere!

Parallel Watch Supports Boolean Expressions

Solution Explorer Enhancements

Collapse All

Pending Changes and Open Files Filter

Preview Selected Items

Sync with Active Document

Masked Renaming files

Image Preview

Scope to This

Hubs and Pivots

Improved Multi Monitor Support

Tabs and Preview Mode

Navigating Back and Forward Now Opens Closed Files

Tabs Stay Put

Pinned Tabs Changes

Add References

Web IDE Improvements

New Debug in Different Browser Option

Page Inspector

Rename Matched Tag

IntelliSense Improvements

Figure 2-33. IntelliSense inside attributes

Quotation Tweak

SQL Server Object Window

Figure 2-34. New SQL Server Object window

Support for Different Test Frameworks

Figure 2-35. Installing xUnit.net runner

ASP.NET Web Forms

Extract to User Control

Event Handler Creation

Smart Tasks Support in Code Editor

Better Support for Emerging Technologies

HTML5

CSS Changes

JavaScript Improvements

JavaScript Console and DOM Explorer

Implicit References and Reference Groups

IntelliSense for Overloaded JS Functions

Miscellaneous Changes

VSUpdate

Performance Improvements

Simplified Remote Debugger Options

Stand-Alone IntelliTrace Collector Utilities

Publish Profile Changes

Fakes Framework

Stubs

Shims

Dotfuscator PreEmptive Analytics

Other Changes

Conclusion

Image Chapter 3: The BCL and the CLR

Changes and Improvements in the BCL

Console Support for UTF-16

Timeout Support for Regular Expressions

System.IO.Compression

WeakReference<T>

Changes in Streams

Defining a Culture for an Application Domain

New Features in the Task Parallel Library

New Task Methods

The Progress<T> Class

TPL DataFlow

The ConcurrentExclusiveSchedulerPair

Portable Class Library

And Then There Is the CLR Core

ProfileOptimization and Multicore Just-in-Time (JIT)

Background Garbage Collection (GC) for the Server

Conclusion

Image Chapter 4: MEF 2 in 4.5

What Is MEF?

What Is New in .NET 4.5

Support for Open Generic Parts

Using Open Generic Types

Convention-based Part Registration

Composition Scoping Enhancements

Diagnostic Improvements

The Microsoft.Composition Package

Using the ContainerConfiguration

Using the ConventionBuilder

Missing in Action

Conclusion

Image Chapter 5: Language

What Does It Mean to Do Something Asynchronously?

Why Do Something Asynchronously?

Can’t We Currently Do This Kind of Thing?

Async and Await

Async Rules

Changes to BCL Methods

Handling Errors

Cancelling Async Methods

Async/Await under the Hood

Caller Information

VB.NET

Call Hierarchy

Iterators

End FunctionNamespaces

Global and Namespace

Real-World Async

Conclusion

Image Chapter 6: ASP.NET 4.5

Strongly Typed Data Controls and Model Binding

BindItem

Validation

HTML Encoded Databinding

Value Providers

Binding to Other Types of Items

Creating Your Own Value Providers

HTML5 Changes

File Upload Control Supports Multiple File Uploads

Bundling and Minification

Bundling and Minification for VS2010 Users

App_Start and Bundling/Minification Configuration

Creating Your Own Transforms

More Useful Possibilities of Bundling/Minification

Validation and XSS Changes

ASP.NET Validation

Other Issues with ASP.NET Validation

New Shiny ASP.NET 4.5 Validation Mode!

Lazy Validation

Raw Unvalidated Data

ValidateRequestMode

AntiXSS

Barry Dorrans and AntiXSS

Unobtrusive Validation

Async

Async in ASP.NET 4.5

When to Use Async to Improve Performance in ASP.NET

Async HttpModule

HttpTaskAsyncHandler

HttpResponse, BeginFlush, and EndFlush

GetBufferlessInputStream

GetBufferedInputStream

WebSockets

WebSockets Pitfalls

ASP.NET 4.5 WebSockets Support

Hello, WebSockets Example!

Performance Improvements

Shared Assemblies (ASP.NET 4 & VS2012)

Multi Core JIT Compilation (4.5)

GC Compilation Optimized for Memory

Prefetcher (Windows 8 and ASP.NET 4.5 only)

Precompile

Miscellaneous Changes

IIS Express

Enable CDN Fallback

Routing Changes

HttpRequest.Abort

New APIs for Better Async Support

New APIs for Extending Web Forms Compilation

Conclusion

Image Chapter 7: ASP.NET MVC 4

Upgrading to MVC 4

Copy Existing Content into a New MVC 4 Project

Manually Upgrade the Project

Utilize the MVC4 NuGet Package

Razor Enhancements

Tilde Syntax (~)

Null and Boolean Handling

Razor and Bundle Syntax

New Default Project Templates

Improved Support for Mobile Development

Developing a Mobile-optimized Site

DisplayMode

Browser Overriding

New Mobile Application Project Template and jQuery Mobile

jQuery.Mobile.MVC

Async Controller Actions

EF Database Migration Support

Azure Support

Miscellaneous Enhancements

Future Enhancements

Single Page Applications and Recipes

Conclusion

Image Chapter 8: Windows Communication Foundation and Web API

Support for Async Calls

Configuration Improvements

Tooltips, IntelliSense, and Validation Improvements

Universal Datagram Protocol Support

BasicHttpsBinding

Compression

WCF ASP.NET Web API

A Quick Introduction to REST

HttpClient Class in the System.Net.Http Library

Creating an ASP.NET Web API Service

Choosing the Right Return Format

Error Handling

Implementing the Full Set of CRUD Operations

Routing

Using Attributes for the Actions

Filtering, Sorting, and Paging

WebSockets

Enabling the Server to Support WebSockets

Accessing WebSockets Service from within .NET

Conclusion

Image Chapter 9: Working with Data

LocalDb

Creating a Database with LocalDb

SqlClient Data Provider

Asynchronous Programming

Streaming

SqlCredential

And the Other Stuff

Entity Framework

Support for Enums

Support for Multi-Result Stored Procedures

Working with Spatial Data Types

Table-Value Function Support

Performance

Entity Model Designer

Conclusion

Image Chapter 10: Windows Azure

The Cloud

The Windows Azure Platform

Execution Models

Data Management in Azure

Messaging

Wait, There Is More …

Getting Started with Azure

Web Sites

Deploying Your ASP.NET Application to an Azure Web Site

Deploying Other Web Sites such as WordPress to Azure

Cloud Services

Looking into the Azure Solution

Storage and Compute Emulators

Deploying Your Cloud Service to Azure

Windows Azure Virtual Machines

Data Management Using Tables and Blobs

Accessing Entities Stored in Table Storage

Accessing Blobs from Azure Storage

Working with Queues

Accessing Azure Storage from within Visual Studio

SQL Database

Quick Creating a New Database

Custom Creating a SQL Database

Connecting to the SQL Database Management Portal

Conclusion

Image Chapter 11: Windows Workflow Foundation

New Designer Features and Changes

C# Expressions

Designer Search

Designer Annotations

Validation Changes

Pan Mode

Multi-select

Auto-surround with Sequence

Define and Consume ActivityDelegate Objects in the Designer

Working with the Rehosted Designer

Additional Features

Activities

New Workflow Development Models

State Machine Workflows

Contract-First Workflow Development

Workflow Versioning

Side-by-Side Versioning

Dynamically Updating a Workflow

Conclusion

Image Chapter 12: WPF

Ribbon Control

Synchronously and Asynchronously Validating Data

Databinding Changes

Delay Property

Binding to Static Properties

Checking for a Valid DataContext Object

Retrieving Databinding Information from a Binding Expression

New Features for the VirtualizingPanel

Accessing Collections on Non-UI Threads

Binding to Types That Implement ICustomTypeProvider

Repositioning Data as the Data's Values Change (Live Shaping)

New Methods for the Dispatcher Class

Event-related Changes

Markup Extensions for Events

Improved Support for Establishing a Weak Reference to an Event

Summary

Image Chapter 13: Silverlight 5

A Brief History of Silverlight

Improvements to Text

OpenType Font Support

Printing Enhancements

Changes to Other Controls

Type-Ahead Text Searching in List Box

Multiple-click Support

PivotViewer Control

Improvements to XAML

Implicit Data Templates

Style Binding

Relative Source Binding to Ancestors

Markup Extensions in XAML

The XAML Debugging Experience

Changes to Graphics

3D in Silverlight

Independent Animations

Changes to Trusted Applications

Multiple-Window Support

Unrestricted File System Access

Calling Native Code from Silverlight

Performance Improvements

Conclusion

Image Chapter 14: Windows 8 Applications

Windows 8 Apps

Classic Apps

Windows 8 Apps—Fundamentals

Writing Code in Windows: A Brief History

Embrace the Modern UI Guidelines

Install through Windows Store

Everything Is Async (Well, Almost)

Everything Is Restricted (Well, Kinda)

Your Application Runs Forever (Well, At Least It Appears To)

Applications Running in the Background Aren't Really Running …

Interfacing with Other Windows 8 Apps

Enough Talk

Creating Your First Windows 8 Store App

Your First Windows Store App Using XAML/C#

Controls in Windows Store Apps

Laying Out Controls

A Look at Some Windows 8 App Specific Controls

Sharing Data with Other Applications

Picking Data from Other Applications

Handling the Life Cycle of a Windows Store App

Conclusion

Image Appendix A: NuGet Introduction

NuGet Package Manager

NuGet Command Line

Creating Your Own Packages

Image Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.27.74