Presentation is loading. Please wait.

Presentation is loading. Please wait.

Explore web development with Microsoft ASP.NET Core 1.0

Similar presentations


Presentation on theme: "Explore web development with Microsoft ASP.NET Core 1.0"— Presentation transcript:

1 Explore web development with Microsoft ASP.NET Core 1.0
Microsoft Ignite 2016 11/9/2018 9:59 PM Explore web development with Microsoft ASP.NET Core 1.0 Clemens Schotte Technical Evangelist © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 ASP.NET Core (previously ASP.NET 5)
A new open-source and cross-platform framework for building modern cloud-based Web applications using .NET

3 ASP.NET Core and the Modern Web
Totally Modular Faster Development Cycle Seamless transition from on-premises to cloud Choose your Editors and Tools OSS Open Source with Contributions Cross-Platform Fast

4 Age of Ascent Benchmarks
11/9/2018 9:59 PM Age of Ascent Benchmarks ASP.NET 4.6 ASP.NET Core on CoreCLR © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 ASP.NET Core in a Nutshell
Web Forms MVC Web API ASP.NET Core MVC ASP.NET 4.6 (System.Web) ASP.NET Core 1.0 (Microsoft.AspNetCore) .NET Framework .NET Core Platform for .NET applications on Windows Cross-platform, modular libraries & runtime optimized for server and cloud workloads

6 Getting Started with ASP.NET Core 1.0
Go to Docs: Samples and code:

7 11/9/2018 9:59 PM .NET CLI © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 What are the .NET Core command-line tools?
Cross-platform command-line set of tools that are… …focused on building code… …for both humans… …and machines

9 CLI commands: basic architecture
dotnet build --output [path] the driver verb (command) verb arguments

10 .NET Core SDK Command line Usage
11/9/2018 9:59 PM .NET Core SDK Command line Usage > dotnet new //creates the files you just saw > dotnet restore //restore NuGet dependencies > dotnet build // builds your source into dlls > dotnet path-to/yourapp.dll //loads and runs > dotnet run //same thing as the last 2 lines © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 11/9/2018 9:59 PM ASP.NET Core © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 ASP.NET Core features Hosting Middleware Dependency Injection
Kestrel, Startup Middleware Routing, authentication, static files, diagnostics, error handling, session, CORS, localization, custom Dependency Injection Configuration Logging Application frameworks MVC, Identity, SignalR (future)

13 Hosting in production Kestrel is not yet hardened for internet facing traffic Run Kestrel behind a mature reverse proxy Ex IIS, Nginx, Apache, etc. Proxy Kestrel Internet Kestrel Kestrel

14 Middleware Middleware1 Middleware2 Middleware3 // logic next();
Request // logic next(); // logic // more logic // more logic // more logic Response

15 ASP.NET frameworks - similar, but different
Web Pages MVC Web API Razor HTML Helpers HTML Helpers Controllers Controllers Actions Actions Filters Filters Model binding Model binding DI DI

16 MVC + Web API + Web Pages = ASP.NET Core MVC

17 ASP.NET Core MVC One set of concepts – remove duplication
Web UI and Web APIs Built on ASP.NET Core Supports .NET Core Runs on IIS or self-hosted Deep integration with DI *NEW* Tag Helpers

18 Roadmap (subject to change!)
1.2 - Q / Q2 2017 WebSockets SignalR Web API security “Razor Pages” (views without MVC controllers) 1.1 - Q / Q1 2017 URL rewriting Response caching WebListener server (Windows only) Middleware as MVC filters Precompiled views View Components as Tag Helpers Improved Azure integration

19

20


Download ppt "Explore web development with Microsoft ASP.NET Core 1.0"

Similar presentations


Ads by Google