1 / 44

Partnership

October, 2014. The next step from Microsoft - vNext. Srdjan Poznic. Partnership. History of ASP.NET. Released in 2002 with VisualStudio.NET ASP.NET Ajax (2007) ASP.NET Dynamic Data (2008) ASP.NET MVC added (2009) WebAPI added (2012) OWIN and SignalR introduced (2013).

Download Presentation

Partnership

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. October, 2014 The next step from Microsoft - vNext Srdjan Poznic Partnership

  2. History of ASP.NET • Released in 2002 with VisualStudio.NET • ASP.NET Ajax (2007) • ASP.NET Dynamic Data (2008) • ASP.NET MVC added (2009) • WebAPI added (2012) • OWIN and SignalR introduced (2013)

  3. Current state of ASP.NET • MVC • WebAPI • WebPages, WebForms • Entity Framework • Mature enough?

  4. Idea? • - What we can do to make .NET better on the cloud? • What we can do to make .NET better on the hosted environment? • How to improve development cycle? • …

  5. What customers say? • - We want open-source! • We need to deliver much faster • We need cross-device development strategy • My customer can’t update to new version of framework. • …

  6. ASP.NET vNext • Latest: ASP.NET vNext alpha4 • (October, 6th) • Visual Studio 14 CTP 4 • (Community Technology Preview) • .NET Framework v4.5.3

  7. New approach • .NET Innovation • Innovation on the core of existing and future applications • Flexibility and agile delivery • Continuous modular releases • Openness • Transparent, open and community driven

  8. Goal (Use pieces that you what to use) - Cross-platform support - Fast - Choose editors/tools - Open-source • - Faster development cycle • New builds and inside the tools - Modular

  9. What is new? • All about NuGet • New run-time engine called „K“ • Roslyn compiler • New project system • New configuration system • Cloud optimized .NET (CoreCLR) takes ~11MB

  10. Demo

  11. New features • Side-by-side deployment • - Exact same code is running on both machines • - no GAC • Open source • Cross-platform (Windows, Mac, Linux)

  12. What is new in asp.net? • MVC, WebAPI, WebPages 6, SignalR3, EF 7 • MVC, Web API & Web Pages have been merged into one • Cloud-optimized versions of MVC, WebAPI, Web Pages, SignalR, and EF • Host agnostic – runs not only under IIS

  13. What is new in asp.net? - Removing System.Web - Moving to OWIN middleware - e.g. Error screen replacement - HttpContext (minimum info in object graph) - The result is a leaner framework, with faster startup time and lower memory consumption.

  14. What is new in asp.net? • No Web.Config anymore • No Global.asax • No packages.xml file • No DLLs anymore • AspNet.Loader.dll

  15. Runtime performances • Old HttpContext removed (~30K) • New HttpContext (~2K) • GC • Faster startup time • Lower memory • REST vs Line Business Apps (historical reasons)

  16. Faster development • Change the file > Save > Refresh the browser • Faster development (dynamic compiling) • Cloud optimized • Develop in cloud editors

  17. Cloud • Seamless transition to cloud • (Same code is running) • Configuration • Session • (SessionState to SessionStateProvider)

  18. Cloud • Cache • Azure Redis Cache / Asp.net cache • Run/Debug in Cloud • Visual Studio Online “Monaco” • Tracing/Logging without re-deploy

  19. Extending application types • Knockout • AngularJS • Ember • Backbone • …

  20. Common improvements • DI everywhere • Tracing and Diagnostics • Consistency

  21. Dependency Injection • Scoped/Transient/Instance/Singleton • Scoped (per request scope):

  22. To me, as a developer, this means • I get all the advantages of the .NET platform (performance, stability, security, comprehensive API) • The development experience of C# and Visual Studio... with the simplicity, portability, quick development refresh cycle and flexibility of an interpreted web framework.

  23. Demo

  24. K Runtime

  25. K Runtime

  26. K Runtime Layering

  27. K tools • KVM (K runtime version manager) • Switch between versions • Switch between .NET runtimes • Upgrade K Runtime

  28. K tools • KPM (K runtime package manager) • Downloads or restores packages for application • Runs from command-line • Uses project file to detect required packages • kpm list • kpm use • kpm upgrade • kpm pack (-- runtime)

  29. Roslyn • (.NET) Compiler as a Platform • Mission? • Opportunities for: • meta-programming • code generation and transformation • interactive use of the C# and VB languages

  30. Roslyn

  31. Roslyn

  32. Roslyn • API and Pipeline

  33. Roslyn • WebForms, MVC5, WebAPI2, WebPages 3, SignalR 2, EF 6 • - fully supported by Roslyn

  34. Tools • - Nuget Package Explorer • https://npe.codeplex.com/ • - Process Explorer • - API Portability Analyzer – Alpha • http://www.microsoft.com/en-us/download/details.aspx?id=42678 • - MyGet • https://www.myget.org/ • Sublime editor • http://www.sublimetext.com/

  35. More.. • .NET Native • .NET Native compiles C# to native machine code that performs like C++ • Popular Windows Store apps start up to 60% faster and use 15-20% less memory when compiled with .NET Native. • C++ updates • Command line scaffolding

  36. Future of the core • RyuJIT: The next-generation JIT compiler for .NET

  37. Future of the front end build process • Why not nugget/MSBuild? • Gulp • Grunt • Bower

  38. Known issues: • Browser link • Fix: Disable Browser Link http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx • Missing ASP.NET Loader IIS assembly • Fix? • Opening project.json as a project • may lead to the wrong output type • Fix: Change output type

  39. Known issues: • After creating new vNext project, empty project folder is created under the solution folder • New project not under “src” • KVM installation

  40. WARNING! • This shows what the ASP.NET team is working on • DO NOT use it in Production • DO NOT run it on your development machine

  41. Links • WebDev blog: http://blogs.msdn.com/b/webdev • Asp.net: www.asp.net/vnext • Asp.net Github: https://github.com/aspnet • Scott’s blog: http://www.hanselman.com/

  42. http://www.meetup.com/NET-User-Group-Novi-Sad/

  43. O autoru… • Mail: s.poznic@vegait.rs • twitter: @srdjanpoznic • Linked in: http://goo.gl/bXA7Av

  44. Thank you

More Related