Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ASP.NET Core 1.0 Overview

2,354 views

Published on

Blog Post: http://WakeUpAndCode.com/crossasp-net-core-mvc-web-api-nvcc

Recently known as ASP.NET 5, the all-new ASP.NET Core 1.0 is Microsoft's cross-platform lightweight approach to building robust applications for the modern Web. Get a high-level overview of what you need to know about ASP.NET Core from Shahed Chowdhuri, Sr. Technical Evangelist @ Microsoft.

Published in: Technology
  • Be the first to comment

ASP.NET Core 1.0 Overview

  1. 1. ASP.NET Core* 1.0 Shahed Chowdhuri Sr. Technical Evangelist @ Microsoft @shahedC WakeUpAndCode.com The Future of Web Apps * aka ASP.NET 5 before RC1
  2. 2. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  3. 3. Introduction
  4. 4. Sources asp.net/vNext Scott Guthrie’s Blog MSDN Blogs, Feb 2015 Update dotnetConf 2015 on MSDN Ch9 BuildWindows.com docs.asp.net
  5. 5. Newer Blog Posts in 2016 RC2: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx Community Standup Notes: https://blogs.msdn.microsoft.com/webdev/
  6. 6. Moving to RC2 RC1 to .NET Core: https://docs.asp.net/en/latest/migration/rc1-to-rc2.html Announcing RC2: https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/
  7. 7. .NET Core 1.0 Info and Downloads: https://www.microsoft.com/net
  8. 8. ASP.NET Core 1.0 Info and Downloads: http://www.asp.net/
  9. 9. .NET Across Windows/Web Platforms http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx
  10. 10. ASP.NET Web API Active Server Pages (Classic ASP) ASP.NET (Web Forms) ASP.NET MVC 1/2/3/4/5 ASP.NET Web Pages ASP.NET MVC 6 Unified MVC, Web API and Web Pages ASP.NET Web API Active Server Pages (Classic ASP) ASP.NET (Web Forms) ASP.NET MVC 1/2/3/4/5 ASP.NET Web Pages ASP.NET MVC 6 Core MVC Unified MVC, Web API and Web Pages Evolution of ASP and ASP .NET
  11. 11. 5 5 .NET Core 5 Names & Version Numbers
  12. 12. ASP.NET Roadmap… https://github.com/aspnet/Home/wiki/Roadmap
  13. 13. 13 https://blogs.msdn.microsoft.com/webdev/2016/06/27/announcing-asp-net-core-1-0/ Announcing ASP.NET Core 1.0
  14. 14. Going beyond 1.0… https://github.com/aspnet/Home/wiki/Roadmap
  15. 15. .NET Standard Library + Tooling Source: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx
  16. 16. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  17. 17. .NET Framework & .NET Core
  18. 18. .NET in 2015: High-Level Overview
  19. 19. ASP.NET Core High-Level Overview
  20. 20. Compilation Process
  21. 21. What About .NET Framework 4.6? Core is
  22. 22. ASP .NET Core
  23. 23. ASP.NET Core 1.0 Features
  24. 24. ASP.NET Core Summary
  25. 25. Relevant XKCD Comic https://xkcd.com/303/
  26. 26. ASP.NET Core Features in Detail
  27. 27. • .NET Core or full .NET Framework • .NET Core is cross-platform • Deploy Core runtime with app • No need for unused features ASP.NET Core Features in Detail
  28. 28. Unified: • MVC • Web API • Web Pages ASP.NET Core Features in Detail
  29. 29. • HTML Helpers in your views! ASP.NET Core Features in Detail
  30. 30. 1. Edit code 2. Save changes 3. Refresh browser 4. See changes! Compiled language with benefits of interpreted language! ASP.NET Core Features in Detail
  31. 31. • Bower  client-side pkg mgr • e.g. JS, CSS • Grunt & Gulp  task runners • compile LESS/CoffeeScript, Typescipt • run JSLint • minify JS files ASP.NET Core Features in Detail
  32. 32. • Manage dependencies with NuGet packages • Edit project.json file (?) • Enjoy IntelliSense! ASP.NET Core Features in Detail
  33. 33. • Configuration in code • Edit Startup.cs file • No need to use Web.config • Use JSON, XML, env vars ASP.NET Core Features in Detail
  34. 34. • minimalistic DI container • replace with others • Autofac, Ninject, etc • use [FromServices] attribute ASP.NET Core Features in Detail
  35. 35. New HTTP pipeline • modular • add components as needed • no longer dependent on System.Web ASP.NET Core Features in Detail
  36. 36. GitHub! ASP.NET Core Features in Detail
  37. 37. Post-RC2 Tooling Changes ASP.NET Core Features in Detail
  38. 38. ASP.NET Core Preview Templates • Empty • Starter Web • Web API ASP.NET Core Features in Detail
  39. 39. • Open ID Connect • OAuth2 • Template auth logic based on OWIN and Open ID Connect (not WIF) ASP.NET Core Features in Detail
  40. 40. More granular control (than HttpClientHandler) over individual aspects of HTTP • redirects, auth, cookies, etc ASP.NET Core Features in Detail
  41. 41. ASP.NET Core Features in Detail
  42. 42. How about Entity Framework? DB ORM Entities in Code Core )
  43. 43. Visual Studio 2015
  44. 44. File  New Project  Web • Web App (4.x) • Core Web App (.NET Core) • Core Web App (.NET framework)
  45. 45. Select a Template ASP. NET Core Templates • Empty • Web API • Web Application
  46. 46. Startup.cs Configuration
  47. 47. project.json
  48. 48. Right-click  (Project) Properties
  49. 49. Choose Profile While Debugging
  50. 50. DEMO
  51. 51. Visual Studio Code Download https://code.visualstudio.com
  52. 52. .NET Version Manager (DNVM) • .NET SDK Version Manager • Formerly KVM • Get list of DNXs (aka KRE) GitHub: https://github.com/aspnet/dnvm
  53. 53. Tooling Changes and NETStandard
  54. 54. 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
  55. 55. 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/
  56. 56. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  57. 57. Q & A
  58. 58. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  59. 59. Email: shchowd@microsoft.com  Twitter: @shahedC

×