Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

42
Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1 Rodolfo Finochietti MVP ASP.NET/IIS Lagash Systems [email protected] @rodolfof Mariano Sánchez Lagash Systems [email protected] @marianosz

description

Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Transcript of Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Page 1: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Que hay de nuevo en Visual Studio 2013

yASP.NET 5.1

Rodolfo FinochiettiMVP ASP.NET/IISLagash [email protected]@rodolfof

Mariano Sánchez

Lagash [email protected]@marianosz

Page 2: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Release early, release often

http://en.wikipedia.org/wiki/Release_early,_release_often

Page 3: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Baby Steps

Page 4: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Foco en…

• Developer productivity• Application performance• Continuous innovation• Open Source

Page 5: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio 2013

• IDE– Synchronized Settings in Visual Studio– Peek Definition– Enhanced Scroll Bar– CodeLens heads-up display– Navigate To

Page 6: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio 2013

• Debugging and Diagnostics–Edit and Continue en 64-Bits Apps–Code Map

Page 7: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio 2013• Async Debug mejorado

Page 8: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

.NET 4.5.1

• Es un update de .NET 4.5–Obvio, no?

Page 9: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

.NET 4.5.1

• Automatic Binding Redirection• Mas información sobre performance en

EventSource• ADO.NET idle connection resiliency

Page 10: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

.NET 4.5.1

• Application performance– ASP.NET app suspension

Page 11: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

.NET 4.5.1

• Application performance– Multi-core JIT improvements

Page 12: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

.NET 4.5.1

• Application performance– On-demand large object heap compaction• GCSettings.LargeObjectHeapCompactionMode

– Consistent performance before and after servicing the .NET Framework

Page 13: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Demo

Page 14: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

What’s new in ASP.NET

Page 15: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

• ASP.NET 4.5 VS2012

Sept

2012

• ASP.NET and Web Tools 2012.2

Feb 2013

• VS2013Fall2013

ASP.NET and Web Tools Cadence

Continuous innovation: Release every ~6 months

Page 16: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

ASP.NET

Web Forms

Websites

Web-pages Single-PageApps MVC Web API SignalR

Services

One ASP.NET

Page 17: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

No “upfront decision” on any ASP.NET technologyUnified dialog

One Project: Web Forms, MVC, Web API

Add any framework to any project

Scaffolding works across all frameworks

Configurable authentication

Bootstrap used for layout and stylingTemplates based on Bootstrap.js

Popular CSS layout framework

Many themes available

Completely new scaffolding system for One ASP.NETWeb application code generation based on your data model

Targets data-driven and CRUD boilerplate code

One ASP.NET

Page 18: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

ASP.NET Identity (a.k.a. Membership)

Complete rewrite of the old Membership feature

Default authentication against different storage providers

Easier to customize

Can be used from different ASP.NET technologies

Integrated with external logons through providers

Active Directory, Windows Azure Active Directory,

Microsoft Account, Facebook, Twitter, and Google

New Membership system

One ASP.NET Identity system

Supports claims-based authentication

Integrated with external logons

Page 19: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

One ASP.NETBrowser Link HighlightsIt improves the way you develop web apps; no need to start/stop. Just “refresh” and see how your app runs in browsers.

Make changes in Visual Studio and force an update in connected browsers

A bi-directional channel

Built on open web standards

New HTML editor

AngularJS IntelliSense

Enable Edit and ContinueBy default for new web apps

Browser Link(“Artery”)

Page 20: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

What’s New in Entity Framework 6?

Custom Code First conventions

Code First mapping to store procedures

Connection resiliency

Code-based configuration

Configuration migrations history table

Multiple contexts per database

Async query and save

Dependency resolution

Page 21: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Demo

One ASP.NET and MVC Scaffolding “Bootstrap” Feature

Browser Link inVS 2013 Web Tooling

Page 22: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

OWIN

OWIN = Open Web Interface for .NETCommon interface that decouples apps from servers

Standards for connecting servers to frameworksDeeply integrated with the ASP.NET pipeline

Run your web APIs on any OWIN-compliant host (your own process)

Page 23: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

What is Katana?

OWIN components that are built and released by Microsoft Infrastructure components, as hosts and servers Authentication components Bindings to frameworks such as SignalR and ASP.NET Web API

Page 24: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

High-Level Goals of Katana

PortableEasily substituted for new components

Third-party frameworks can seamlessly run on Microsoft servers

Microsoft frameworks can potentially run on third-party servers and hosts

Modular/flexibleSmall and focused components

Lightweight

Lightweight/performance/scalableConsume fewer computing resources

Handle more load

Page 25: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Available as stand-alone NuGet packages

Web API security (CORS, OAuth 2.0)

Attribute routing

OWIN integration

Web API OData

ASP.NET Web API 2

Page 26: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Cross-Origin Requests

Enable CORS in web APIPer action

Per controller

Globally

[EnableCors(origins: "http://www.example.com", headers: "*", methods: "*")]public class ItemsController : ApiController{ public HttpResponseMessage GetAll() { ... } public HttpResponseMessage GetItem(int id) { ... } public HttpResponseMessage Post() { ... }

[DisableCors] public HttpResponseMessage PutItem(int id) { ... }}

Page 27: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Attribute RoutingBring your routes closer to your resources

config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”, action = “GetTodos” });

Controller Selector

Action Selector

public IEnumerable<TodoItem> GetTodos() { … }

Page 28: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Bring your routes closer to your resources

config.MapHttpAttributeRoutes();

[HttpGet("api/todolists/{id}/todos")]public IEnumerable<TodoItem> GetTodos(int id) { … }

Attribute Routing

Page 29: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Attribute Routing

Optional values Default values

[HttpGet(“Demographics/{zipcode?}")]public Demographics Get(int? zipcode) { … }

[HttpGet("Demographics/{zipcode=98052}")]public Demographics Get(int zipcode) { … }[HttpGet("people/{id:int}")]public Person Get(int id) { … }

[HttpGet("people/{name:alpha}")]public Person Get(string name) { … }

Page 30: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Taking Web APIs to the Next Level

How to add support for:Relationships?Query?Paging?Action?Batching?Clients?

OData provides a standard solution for common Web API patterns

Page 31: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

ASP.NET Web API OData

Components for implementing OData servicesModel builders, formatters (Atom/JSON/XML), path and query parsers, LINQ expression generator, etc.

Built on ODataLibSame underpinnings as WCF Data Services

Open SourceAccepting contributions

Now supports $select, $expand, and $batch

Page 32: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

What is ASP.NET SignalR?

Incredibly simple real-time web for .NETSimplicity

Reach

Performance

How can I use real-time functionality in my app?Anytime a user refreshes the page or you use polling

Dashboards and monitoring

Collaborative anything

Gaming

Real-time forms and concurrency management

Page 33: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

ASP.NET SignalR 2.0OWINSimplified dependency graph

Unified startup configuration story

Highly portable between IIS and self-host

Portable Class LibraryClient libs for WinRT, WPF, WP8 and SL5

OWIN integration

Portable Class Library client

Xamarin client (iOS, Android, and Mac)

C++ client for Windows

Page 34: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Demo

Web API 2Attribute routing

OWINSignalR

Page 35: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio tooling for Windows

Azure

Page 36: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio Server Explorer

All services are now contained under a single Windows Azure nodeVS OAuth with WLID

Page 37: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Visual Studio Server Explorer

Subscription and Region Filtering Support

Page 38: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Virtual Machines from Visual Studio

Stop/Start Virtual Machines within Visual Studio

Page 39: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Remote Debugging

Remote DebuggingWeb Sites

Cloud Services

Page 40: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Demo

Visual Studio tooling for Windows

Azure

Page 41: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

Contacto

• Mail:– [email protected][email protected]

• Blogs:– http://shockbyte.net– http://weblogs.asp.net/marianos/

• Twitter:– @rodolfof– @marianosz

Page 42: Que hay de nuevo en Visual Studio 2013 y ASP.NET 5.1

¡Gracias!