Introduction to ASP.NET 5 Pranav Rastogi | @rustd M333
Professional ASP.NET 4.5 in C# and VB Azure Redis Cache ASP.NET
4/25/2017 What is ASP.NET 5? A new open-source and cross-platform framework for building modern cloud-based Web applications using .NET © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
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 OSS Open Source with Contributions Cross-Platform Fast
ASP.NET 4.6 and 5 in a Nutshell Web Forms MVC 5.x Web API 2.2 MVC / Web API 6 ASP.NET 4.6 (System.Web) ASP.NET 5 .NET Execution Environment (DNX) Core CLR .NET Native .NET Framework 4.6 .NET Core 5 Full .NET Framework for any scenario and library support on Windows Modular libraries & runtime optimized for server and cloud workloads
github.com/microsoft/dotnet 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 .NET Framework 4.6 .NET Core 5 Common RyuJIT, SIMD Core-CLR Runtime components Compilers .NET Compiler Platform (“Roslyn”) Languages .NET Core 5 Libraries .NET Framework 4.6 Libraries Libraries Get started from: github.com/microsoft/dotnet
Getting Started with ASP.NET 5 4/25/2017 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 © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Intro to ASP.NET 5 Daniel Roth 4/25/2017 © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
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 + 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 4/25/2017 © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
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 4/25/2017 © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SPEED https://github.com/aspnet/benchmarks 4/25/2017 © 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
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 4/25/2017 Microsoft Virtual Academy Resources TechNet & MSDN Flash Free Online Learning http://aka.ms/mva Subscribe to our fortnightly newsletter http://aka.ms/technetnz http://aka.ms/msdnnz Sessions on Demand http://aka.ms/ch9nz © 2014 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Complete your session evaluation now and be in to win! 4/25/2017 7:42 AM Complete your session evaluation now and be in to win! © 2013 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. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4/25/2017 7:42 AM Thank You! © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.