230 likes | 375 Views
Introduction to ASP.NET 5. Pranav Rastogi | @rustd. M333. Professional ASP.NET 4.5 in C# and VB Azure Redis Cache ASP.NET. What is ASP.NET 5?. A new open-source and cross-platform framework for building modern cloud-based Web applications using .NET. ASP.NET 5 is NOT.
E N D
Introduction to ASP.NET 5 Pranav Rastogi | @rustd M333
Professional ASP.NET 4.5 in C# and VBAzure Redis CacheASP.NET
What is ASP.NET 5? A new open-source and cross-platform framework for building modern cloud-based Web applications using .NET
ASP.NET 5 is NOT . . . The death of Web Forms The VB killer A 99.9% backwards compatible release of System.Web Windows first, xplat later Done yet
ASP.NET and the Modern Web Totally Modular Faster Development Cycle Seamless transition from on-premises to cloud Choose your Editors and Tools Open Source with Contributions Cross-Platform OSS Fast
ASP.NET 4.6 and 5 in a Nutshell MVC / Web API 6 Web API 2.2 Web Forms MVC 5.x ASP.NET 5 ASP.NET 4.6 (System.Web) .NET Execution Environment (DNX) Core CLR .NET Native .NET Framework 4.6 .NET Core 5 Modular libraries & runtime optimized for server and cloud workloads Full .NET Framework for any scenario and library support on Windows
.NET 2015 Open Sourcing .NET Platforms General purpose .NET Core runtime, compilers and libraries ASP.NET 5 web server stack Fully Supported cross-platform Windows, Linux and OS X Visual Studio tooling support (e.g. debugging and deploying to Docker in Linux) Omnisharp extensions to cross-plat IDEs (Sublime, Emacs…) Open Source .NET Core and ASP.NET 5 source being developed on GitHub Contributions accepted, tested and fully supported Close collaboration with Mono community What is Microsoft Open Sourcing? .NET Framework 4.6 .NET Core 5 Common Get started from: • Libraries • Runtime components • Compilers github.com/microsoft/dotnet • .NET Compiler Platform • (“Roslyn”) • Languages • .NET Core 5 Libraries • .NET Framework 4.6 Libraries • RyuJIT, SIMD • Core-CLR
Getting Started with ASP.NET 5 Windows Install Visual Studio 2015 *NEW* Install beta7 update! OS X/Linux Install Visual Studio Code Download the .NET Version Manager (DNVM) Install latest .NET Execution Environment (DNX) Docs: https://docs.asp.net Samples and code: https://github.com/aspnet
Intro to ASP.NET 5 Daniel Roth
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
MVC 6: MVC, Web API, Web Pages One set of concepts – remove duplication Web UI and Web APIs Smooth transition from Web Pages to MVC (future) Built DI first Built on ASP.NET 5 Runs on IIS or self-hosted Supports .NET Core
Intro to MVC 6 Daniel Roth
New in MVC 6 - TagHelpers HTML helpers expressed as tags Ex. Instead of: @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" }) Write this: <label asp-for="UserName" class="col-md-2 control-label"></label> Easier to customize with additional attributes Work seamlessly with the HTML editor
Tag Helpers Daniel Roth
SPEED https://github.com/aspnet/benchmarks
ASP.NET 5 Roadmap https://github.com/aspnet/home/wiki/roadmap Beta6 27 Jul 2015 Beta7 24 Aug 2015 Beta8 21 Sep 2015 RC1 Nov 2015 1.0.0 Q1* 2016
Related Ignite NZ Sessions 1 Azure Redis Cache Thursday 1.55p Malborough (SKY CITY) • Find me later at… • Hub Happy Hour Wed 5:30-6:30pm • Hub Happy Hour Thu 5:30-6:30pm
Resources Microsoft Virtual Academy TechNet & MSDN Flash • Free Online Learning http://aka.ms/mva • Subscribe to our fortnightly newsletter http://aka.ms/technetnzhttp://aka.ms/msdnnz • Sessions on Demand http://aka.ms/ch9nz