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
Choose your Editors
and Tools
Open Sourcewith Contributions
Cross-Platform
C:\temp\WinAzure_rgb_Wht_S.png
http://files.softicons.com/download/system-icons/windows-8-metro-icons-by-dakirby309/png/512x512/Folders%20&%20OS/Linux.png
OSS
Seamless transitionfrom on-premises to cloud
Faster Development Cycle
Totally Modular
Fast
ASP.NET 4.6 and 5 in a Nutshell
.NET Framework 4.6
.NET Core 5
http://files.softicons.com/download/system-icons/windows-8-metro-icons-by-dakirby309/png/512x512/Folders%20&%20OS/Linux.png
C:\temp\WinAzure_rgb_Wht_S.png
C:\temp\WinAzure_rgb_Wht_S.png
Full .NET Framework for any scenario and
library support on Windows
Modular libraries & runtime optimized forserver and cloud workloads
ASP.NET 4.6  
(System.Web)
MVC 5.x
MVC / Web API 6
Core CLR
.NET Native
C:\temp\WinAzure_rgb_Wht_S.png
ASP.NET 5
Web API 2.2
Web
Forms
.NET Execution Environment (DNX)
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 2015
RyuJITSIMD
Core-CLR
Runtimecomponents
Compilers
.NET Compiler Platform
(“Roslyn”)
Languages
.NET Core 5 Libraries
.NET Framework 4.6 Libraries
Libraries
Common
.NET
Framework 4.6
http://files.softicons.com/download/system-icons/windows-8-metro-icons-by-dakirby309/png/512x512/Folders%20&%20OS/Linux.png
C:\temp\WinAzure_rgb_Wht_S.png
C:\temp\WinAzure_rgb_Wht_S.png
github.com/microsoft/dotnet
Get started from:
.NET
Core 5
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
MVC
Web API
Web Pages
Razor
HTML Helpers
HTML Helpers
Controllers
Controllers
Actions
Actions
Filters
Filters
Model binding
Model binding
DI
DI
MVC + Web API + Web Pages = ASP.NET MVC 6
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
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
1
Resources
TechNet & MSDN Flash
Subscribe to our fortnightly newsletter
Microsoft Virtual Academy
Free Online Learning
Sessions on Demand
Complete your session evaluation now and be in to win!
© 2015 Microsoft Corporation. All rights reserved.
Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Thank You!