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: Pre-RC2

3,796 views

Published on

Blog Post: http://WakeUpAndCode.com/cross-platform-web-apps-asp-net-core

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: Pre-RC2

  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. Wait, What? https://twitter.com/MotoWilliams/status/730198938377064448/photo/1 Community Standup Notes: https://blogs.msdn.microsoft.com/webdev/
  7. 7. .NET Across Windows/Web Platforms http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx
  8. 8. 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
  9. 9. 5 5 .NET Core 5 Names & Version Numbers
  10. 10. ASP.NET Roadmap https://github.com/aspnet/Home/wiki/Roadmap
  11. 11. .NET Standard Library + Tooling Source: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx
  12. 12. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  13. 13. .NET Framework & .NET Core
  14. 14. .NET in 2015: High-Level Overview
  15. 15. ASP.NET Core High-Level Overview
  16. 16. Compilation Process
  17. 17. What About .NET Framework 4.6? Core is
  18. 18. ASP .NET Core
  19. 19. ASP.NET Core 1.0 Features
  20. 20. ASP.NET Core Summary
  21. 21. Relevant XKCD Comic https://xkcd.com/303/
  22. 22. ASP.NET Core Features in Detail
  23. 23. • .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
  24. 24. Unified: • MVC • Web API • Web Pages ASP.NET Core Features in Detail
  25. 25. • HTML Helpers in your views! ASP.NET Core Features in Detail
  26. 26. 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
  27. 27. • 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
  28. 28. • Manage dependencies with NuGet packages • Edit project.json file • Enjoy IntelliSense! ASP.NET Core Features in Detail
  29. 29. • Configuration in code • Edit Startup.cs file • No need to use Web.config • Use JSON, XML, env vars ASP.NET Core Features in Detail
  30. 30. • minimalistic DI container • replace with others • Autofac, Ninject, etc • use [FromServices] attribute ASP.NET Core Features in Detail
  31. 31. New HTTP pipeline • modular • add components as needed • no longer dependent on System.Web ASP.NET Core Features in Detail
  32. 32. GitHub! ASP.NET Core Features in Detail
  33. 33. K Package Manager (KPM)* • bundle application • build NuGet packages • build assemblies * changes coming with RC2 ASP.NET Core Features in Detail
  34. 34. ASP.NET Core Preview Templates • Empty • Starter Web • Web API ASP.NET Core Features in Detail
  35. 35. • Open ID Connect • OAuth2 • Template auth logic based on OWIN and Open ID Connect (not WIF) ASP.NET Core Features in Detail
  36. 36. More granular control (than HttpClientHandler) over individual aspects of HTTP • redirects, auth, cookies, etc ASP.NET Core Features in Detail
  37. 37. ASP.NET Core Features in Detail
  38. 38. How about Entity Framework? DB ORM Entities in Code Core )
  39. 39. Visual Studio 2015
  40. 40. File  New Project  Web • Web App • Class Library • Console App
  41. 41. Select a Template* * to be renamed in RC2
  42. 42. Startup.cs Configuration
  43. 43. project.json
  44. 44. Right-click  (Project) Properties • Application tab • Debug tab Use specific KRE/DNX/CLI version!
  45. 45. Choose CLR Type While Debugging
  46. 46. DEMO
  47. 47. Visual Studio Code Download https://code.visualstudio.com
  48. 48. .NET Version Manager (DNVM) • .NET SDK Version Manager • Formerly KVM • Get list of DNXs (aka KRE) GitHub: https://github.com/aspnet/dnvm
  49. 49. Tooling Changes and NETStandard
  50. 50. 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
  51. 51. 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/
  52. 52. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  53. 53. Q & A
  54. 54. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio Q&A
  55. 55. Email: shchowd@microsoft.com  Twitter: @shahedC

×