Top Banner
ASP.NET Core* in 2017 Shahed Chowdhuri Sr. Technical Evangelist @ Microsoft @shahedC WakeUpAndCode.com The Future of Web Apps * aka ASP.NET 5 before RC1
55

ASP.NET Core in 2017: The Future of Web Apps

Apr 05, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core* in 2017Shahed ChowdhuriSr. Technical Evangelist @ [email protected]

The Future of Web Apps

* aka ASP.NET 5 before RC1

Page 2: ASP.NET Core in 2017: The Future of Web Apps

Agenda

Introduction

> .NET (Framework & Core)> ASP.NET Core> Visual Studio

Q&A

Page 3: ASP.NET Core in 2017: The Future of Web Apps

Introduction

Page 5: ASP.NET Core in 2017: The Future of Web Apps

Blog Posts in 2016

RC2: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx

Community Standup Notes: https://blogs.msdn.microsoft.com/webdev/

Page 6: ASP.NET Core in 2017: The Future of Web Apps

Blogs To Read in 2017

Scott Hanselman’s Blog: https://www.hanselman.com/blog/

Community Standup Notes: https://blogs.msdn.microsoft.com/webdev/

Page 7: ASP.NET Core in 2017: The Future of Web Apps

Visual Studio 2017 Launch Videos

https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch?sort=viewed&direction=asc

Page 8: ASP.NET Core in 2017: The Future of Web Apps

Build Conference http://build.microsoft.com

Page 9: ASP.NET Core in 2017: The Future of Web Apps

Docs + Tutorials

Tutorials: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/

Docs: https://blogs.msdn.microsoft.com/webdev/2017/02/07/asp-net-documentation-now-on-docs-microsoft-com/

Page 10: ASP.NET Core in 2017: The Future of Web Apps

.NET Core for Cross-Platform DevInfo and Downloads: https://www.microsoft.com/net

Page 11: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core 1.0Info and Downloads: http://www.asp.net/

Page 12: ASP.NET Core in 2017: The Future of Web Apps

.NET Across Windows/Web Platforms

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

Page 13: ASP.NET Core in 2017: The Future of Web Apps

ASP.NETWeb API

Active Server Pages

(Classic ASP)

ASP.NET(Web

Forms)

ASP.NETMVC

1/2/3/4/5

ASP.NETWeb

Pages

ASP.NETMVC 6

Unified MVC,

Web API and Web

PagesASP.NETWeb API

Active Server Pages

(Classic ASP)

ASP.NET(Web

Forms)

ASP.NETMVC

1/2/3/4/5

ASP.NETWeb

Pages

ASP.NETMVC 6Core MVC

Unified MVC,

Web API and Web

Pages

Evolution of ASP and ASP .NET

Page 14: ASP.NET Core in 2017: The Future of Web Apps

C# 6.0

.NET Framework

4.6

ASP.NET 5(runs on .NET Core 5

or .NET Framework 4.5.2+)

ASP.NET MVC 6

.NET Core 5 SignalR 3

C# 7.0

.NET Framework

4.6

ASP.NET 5 Core 1.x(runs on .NET Core 5 1.x

or .NET Framework 4.5.2+)

ASP.NET MVC 6Core MVC

.NET Core 5.NET Core

1.x

SignalR

Names & Version Numbers

Page 15: ASP.NET Core in 2017: The Future of Web Apps

C# 7.0 in VS2017

https://docs.microsoft.com/en-us/dotnet/articles/csharp/csharp-7

Page 16: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core Roadmap

https://github.com/aspnet/Home/wiki/Roadmap

Page 17: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core 1.1 Update

https://blogs.msdn.microsoft.com/dotnet/2017/01/30/january-2017-update-for-asp-net-core-1-1/

Page 18: ASP.NET Core in 2017: The Future of Web Apps

.NET Core Roadmap

https://github.com/dotnet/core/blob/master/roadmap.md

Page 19: ASP.NET Core in 2017: The Future of Web Apps

.NET Core 2.0 (May 2017)

https://github.com/dotnet/corefx/milestone/4

Page 20: ASP.NET Core in 2017: The Future of Web Apps

20https://blogs.msdn.microsoft.com/dotnet/2017/02/07/announcing-net-core-tools-updates-in-vs-2017-rc/

Announcing .NET Core Tools Updates in VS 2017 RC

Page 21: ASP.NET Core in 2017: The Future of Web Apps

.NET Standard Library + Tooling

Source: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx

Page 22: ASP.NET Core in 2017: The Future of Web Apps

Agenda

Introduction

> .NET (Framework & Core)> ASP.NET Core> Visual Studio

Q&A

Page 23: ASP.NET Core in 2017: The Future of Web Apps

.NET Framework & .NET Core

Page 24: ASP.NET Core in 2017: The Future of Web Apps

.NET in 2015: High-Level Overview

Page 25: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core High-Level Overview

Page 26: ASP.NET Core in 2017: The Future of Web Apps

Compilation Process

Page 27: ASP.NET Core in 2017: The Future of Web Apps

What About .NET Framework 4.6?

Core is

Page 28: ASP.NET Core in 2017: The Future of Web Apps

ASP .NET Core

Page 29: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core 1.x Features

Page 30: ASP.NET Core in 2017: The Future of Web Apps

ASP.NET Core Summary

Page 31: ASP.NET Core in 2017: The Future of Web Apps

Relevant XKCD Comic

Source: https://xkcd.com/303/

Page 32: ASP.NET Core in 2017: The Future of Web Apps

How about Entity Framework?

DB

ORM

Entities in Code

Core

)

Page 33: ASP.NET Core in 2017: The Future of Web Apps

Visual Studio 2017

Page 34: ASP.NET Core in 2017: The Future of Web Apps

New Installer!

Page 35: ASP.NET Core in 2017: The Future of Web Apps

File New Project Web

• Web App (4.x)• Core Web App (.NET Core)• Core Web App (.NET framework)

Page 36: ASP.NET Core in 2017: The Future of Web Apps

Select a Template1.0 and 1.1 Templates• Empty• Web API• Web Application

Page 37: ASP.NET Core in 2017: The Future of Web Apps

Startup.cs Configuration

Page 38: ASP.NET Core in 2017: The Future of Web Apps

project.json

Page 39: ASP.NET Core in 2017: The Future of Web Apps

.csproj project file

Page 40: ASP.NET Core in 2017: The Future of Web Apps

Right-click (Project) Properties

Page 41: ASP.NET Core in 2017: The Future of Web Apps

Choose Profile While Debugging

Page 42: ASP.NET Core in 2017: The Future of Web Apps

New Razor Pages!ht

tp://

www.

hish

ambi

nate

ya.c

om/w

elco

me-

razo

r-pag

es

Page 43: ASP.NET Core in 2017: The Future of Web Apps

New: Live Unit Testing

https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-unit-testing-visual-studio-2017-rc/

Page 44: ASP.NET Core in 2017: The Future of Web Apps

DEMO

Page 45: ASP.NET Core in 2017: The Future of Web Apps

Migrating from MVC to MVC Core

https://docs.microsoft.com/en-us/aspnet/core/migration/mvc

Page 46: ASP.NET Core in 2017: The Future of Web Apps

Visual Studio Code

Download: https://code.visualstudio.com

Page 47: ASP.NET Core in 2017: The Future of Web Apps

.NET Version Manager (DNVM)

• .NET SDK Version Manager

• Formerly KVM• Get list of DNXs

(aka KRE)

GitHub: https://github.com/aspnet/dnvm

(OBSOLET

E)

Page 48: ASP.NET Core in 2017: The Future of Web Apps

Tooling Changes and NETStandard

Page 49: ASP.NET Core in 2017: The Future of Web Apps

dotnet/cli on GitHubThis repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries.

GitHub: https://github.com/dotnet/cli

Page 50: ASP.NET Core in 2017: The Future of Web Apps

References• ASP.NET vNext: http://asp.net/vnext • Intro: https://weblogs.asp.net/scottgu/introducing-asp-net-5 • Feb 2015 Updates:

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

• dotnetConf March 2015: https://channel9.msdn.com/Events/dotnetConf/2015 • Build 2015: https://channel9.msdn.com/Events/Build/2015 • Understanding .NET 2015:

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

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

• Tutorial: http://www.asp.net/vnext/overview/aspnet-vnext/vc• ASP.NET Community Standup Notes: https://blogs.msdn.microsoft.com/webdev/ • Update on ASP.NET RC2:

http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx • Additional Tutorials: See Starter Web Project Template

Page 51: ASP.NET Core in 2017: The Future of Web Apps

Other Resources • Roadmap: https://github.com/aspnet/Home/wiki/Roadmap • ASP.NET Identity:

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

• KRE, KVM, KPM: http://gunnarpeipman.com/2014/10/asp-net-5-what-are-kre-kvm-kpm/

• Grunt, JS Task Runner: http://gruntjs.com/ • Gulp, Workflow Automation: http://gulpjs.com/ • Bower, Package Manager: http://bower.io/ • npm, Node Package Manager: https://www.npmjs.com/

Page 52: ASP.NET Core in 2017: The Future of Web Apps

Agenda

Introduction

> .NET (Framework & Core)> ASP.NET Core> Visual Studio

Q&A

Page 53: ASP.NET Core in 2017: The Future of Web Apps

Q & A

Page 54: ASP.NET Core in 2017: The Future of Web Apps

Agenda

Introduction

> .NET (Framework & Core)> ASP.NET Core> Visual Studio

Q&A