48
The Future of Web Apps @shahedC WakeUpAndCode.com

ASP.NET 5 Overview

Embed Size (px)

Citation preview

Page 1: ASP.NET 5 Overview

The Future of Web Apps

@shahedC

WakeUpAndCode.com

Page 2: ASP.NET 5 Overview

Introduction

> .NET (Framework & Core)

> ASP.NET 5.0

> VS2015 Preview

Q&A

Page 3: ASP.NET 5 Overview
Page 4: ASP.NET 5 Overview
Page 5: ASP.NET 5 Overview

http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx

Page 6: ASP.NET 5 Overview
Page 7: ASP.NET 5 Overview
Page 8: ASP.NET 5 Overview

Introduction

> .NET (Framework & Core)

> ASP.NET 5.0

> VS2015 Preview

Q&A

Page 9: ASP.NET 5 Overview
Page 10: ASP.NET 5 Overview
Page 11: ASP.NET 5 Overview
Page 12: ASP.NET 5 Overview
Page 13: ASP.NET 5 Overview
Page 14: ASP.NET 5 Overview
Page 15: ASP.NET 5 Overview
Page 16: ASP.NET 5 Overview
Page 17: ASP.NET 5 Overview
Page 18: ASP.NET 5 Overview

• .NET Core or full .NET Framework• .NET Core is cross-platform• Deploy Core runtime with app• No need for unused features

Page 19: ASP.NET 5 Overview

Unified:• MVC• Web API• Web Pages

Page 20: ASP.NET 5 Overview

• HTML Helpers in your views!

Page 21: ASP.NET 5 Overview

1. Edit code2. Save changes3. Refresh browser4. See changes!

Compiled language with benefits of interpreted language!

Page 22: ASP.NET 5 Overview

• Bower client-side pkg mgr• e.g. JS, CSS

• Grunt & Gulp task runners• compile LESS/CoffeeScript,

Typescipt• run JSLint• minify JS files

Page 23: ASP.NET 5 Overview

• Manage dependencies with NuGetpackages

• Edit project.json file• Enjoy IntelliSense!

Page 24: ASP.NET 5 Overview

• Configuration in code• Edit Startup.cs file• No need to use Web.config• Use JSON, XML, env vars

Page 25: ASP.NET 5 Overview

• minimalistic DI container• replace with others

• Autofac, Ninject, etc• use [Activate] attribute

Page 26: ASP.NET 5 Overview

New HTTP pipeline• modular• add components as

needed• no longer dependent

on System.Web

Page 27: ASP.NET 5 Overview

GitHub!

Page 28: ASP.NET 5 Overview

K Package Manager (KPM)• bundle application• build NuGet packages• build assemblies

Page 29: ASP.NET 5 Overview

ASP.NET 5 Preview Templates• Empty• Starter Web• Web API

Page 30: ASP.NET 5 Overview

• Open ID Connect• OAuth2• Template auth logic based on

OWIN and Open ID Connect (not WIF)

Page 31: ASP.NET 5 Overview

More granular control (than HttpClientHandler) over individual aspects of HTTP• redirects, auth, cookies, etc

Page 32: ASP.NET 5 Overview
Page 33: ASP.NET 5 Overview

DB

ORM

Entities in Code

Page 34: ASP.NET 5 Overview
Page 35: ASP.NET 5 Overview
Page 36: ASP.NET 5 Overview
Page 37: ASP.NET 5 Overview
Page 38: ASP.NET 5 Overview
Page 39: ASP.NET 5 Overview
Page 40: ASP.NET 5 Overview
Page 41: ASP.NET 5 Overview
Page 42: ASP.NET 5 Overview

http://www.omnisharp.net/ https://github.com/aspnet/dnvm/

Page 43: ASP.NET 5 Overview

http://asp.net/vnext

https://weblogs.asp.net/scottgu/introducing-asp-net-5

http://blogs.msdn.com/b/webdev/archive/2015/02/23/aspnet-5-updates-for-feb-2015.aspx

https://channel9.msdn.com/Events/dotnetConf/2015

http://blogs.msdn.com/b/bethmassi/archive/2015/02/25/understanding-net-2015.aspx

http://www.asp.net/vnext/overview/aspnet-vnext/grunt-and-bower-in-visual-studio-2015

http://www.asp.net/vnext/overview/aspnet-vnext/vc

Page 44: ASP.NET 5 Overview

http://www.asp.net/identity/overview/getting-started/introduction-to-aspnet-identity

http://gunnarpeipman.com/2014/10/asp-net-5-what-are-kre-kvm-kpm/

http://gruntjs.com/

http://gulpjs.com/

http://bower.io/

https://www.npmjs.com/

Page 45: ASP.NET 5 Overview

Introduction

> .NET (Framework & Core)

> ASP.NET 5.0

> VS2015 Preview

Q&A

Page 46: ASP.NET 5 Overview
Page 47: ASP.NET 5 Overview

Introduction

> .NET (Framework & Core)

> ASP.NET 5.0

> VS2015 Preview

Q&A