Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf ·...
Transcript of Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf ·...
![Page 1: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/1.jpg)
Introduction to ASP.NET 5 and MVC 6
![Page 2: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/2.jpg)
Ovais Mehboob Ahmed Khan
MICROSOFT MVP Visual Studio and Development Technologies
DZone MVB
@ovaismehboobReach me at:
![Page 3: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/3.jpg)
History of ASP.NET
• 2002 – ASP.NET
• 2008 – ASP.NET MVC
• 2010 – ASP.NET Web Pages
• 2012 – ASP.NET Web API, Signal R
• 2015 – ASP.NET 5
![Page 4: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/4.jpg)
What’s come in .NET 2015
![Page 5: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/5.jpg)
![Page 6: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/6.jpg)
![Page 7: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/7.jpg)
![Page 8: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/8.jpg)
.NET Core
![Page 9: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/9.jpg)
.NET Core
![Page 10: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/10.jpg)
.NET Core •
![Page 11: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/11.jpg)
.NET Core Major Components• Two Major Components
• Core CLR • Built on the same codebase as the .NET Framework CLR.
• Includes the same GC and JIT (RyuJIT)
• Does not include features like Application Domains or Code Access Security.
• The runtime is delivered on NuGet (Microsoft.CoreCLR package)
• .NET Core Foundation Libraries (CoreFX)• Are the same code as the .NET Framework class libraries but does not contain
dependencies so have a smaller footprint.
• Available on NuGet (System.* package)
![Page 12: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/12.jpg)
Core CLR
![Page 13: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/13.jpg)
![Page 14: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/14.jpg)
ASP.NET Transition
![Page 15: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/15.jpg)
ASP.NET 5 and the Modern Web
![Page 16: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/16.jpg)
Modern Web – Agility
![Page 17: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/17.jpg)
Modern Web - Fast
![Page 18: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/18.jpg)
Modern Web – Cloud
![Page 19: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/19.jpg)
Modern Web – Cross Platform
![Page 20: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/20.jpg)
DemoExplore VS 2015 project templates
Create ASP.NET Web Application
Discuss ASP.NET 5 Environment Files
![Page 21: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/21.jpg)
Command Line Tools
- DNX (.NET Execution)- New execution environment of .NET- DNX bootstraps and runs your application- Not the CLR only, contains CoreFX as well- Install using DNVM
- DNVM (.NET Version Manager)- Set of command line utilities to update and configure which .NET Runtime to use- Downloadable from aspnet/home GitHub repository
- DNU (.NET Utility)- .NET Utility used to perform tasks like building, installing packages etc
![Page 22: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/22.jpg)
DNX
![Page 23: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/23.jpg)
Getting DNX
![Page 24: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/24.jpg)
DNX
![Page 25: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/25.jpg)
DNX
![Page 26: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/26.jpg)
DNX
![Page 27: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/27.jpg)
Running DNX
![Page 28: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/28.jpg)
DNU
![Page 29: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/29.jpg)
ASP.NET 5
![Page 30: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/30.jpg)
Servers
• IIS and WebListener is for Windows only
• Kestrel is designed to run Cross Platform
![Page 31: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/31.jpg)
Windows based Servers
• IIS and IIS Express• Hosting ASP.NET 5 on IIS bypasses the legacy System.Web infrastructure and
load pipeline defined in Startup.cs
• WebListener• Windows-only server that allows ASP.NET to be hosted outside IIS,
• Runs directly on Http.Sys kernel driver of windows
• It provides same features interface as IIS
• You can think it as a library version of IIS
![Page 32: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/32.jpg)
Cross Platform Server
• Kestrel• Web server based on libuv
• Libuv – cross platform asynchronous I/O library
• Kestrel is open source
• View on github
• https://github.com/aspnet/KestrelHttpServer
![Page 33: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/33.jpg)
ASP.NET 5 invoked
![Page 34: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/34.jpg)
Pipeline primitives
![Page 35: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/35.jpg)
Dependency Injection
![Page 36: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/36.jpg)
Registering Dependencies
![Page 37: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/37.jpg)
Dependency Resolution
ASP.NET 5 depends on many packages
How the CLR Load the assemblies?
Two rules for loading Dependencies
- Nearest wins
- Cousin dependencies
![Page 38: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/38.jpg)
Application using Nearest Wins
- Nearest-Wins allows a package/application to override any particular version of a package in its dependency tree by directly depending on the version it wants.
![Page 39: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/39.jpg)
Package using Nearest Wins
![Page 40: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/40.jpg)
Configuration
![Page 41: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/41.jpg)
Configuration Example
![Page 42: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/42.jpg)
![Page 43: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/43.jpg)
Packaging & Publishing
![Page 44: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/44.jpg)
MVC 6
![Page 45: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/45.jpg)
Packaging
![Page 46: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/46.jpg)
Middleware
![Page 47: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/47.jpg)
Routing
![Page 48: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/48.jpg)
Controller
![Page 49: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/49.jpg)
Attribute Routing
![Page 50: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/50.jpg)
Combining Routing Parameters
![Page 51: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/51.jpg)
Route Parameters
![Page 52: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/52.jpg)
HTTP Based Routes
![Page 53: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/53.jpg)
Areas
![Page 54: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/54.jpg)
POCO Controllers
![Page 55: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/55.jpg)
Dependency Injection
![Page 56: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/56.jpg)
Model Binding Changes
![Page 57: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/57.jpg)
Razor Directives
![Page 58: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/58.jpg)
@inject
![Page 59: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/59.jpg)
Tag Helpers
![Page 60: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/60.jpg)
Tag Helpers
![Page 61: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/61.jpg)
Tag Helper Implementation
![Page 62: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/62.jpg)
MVC Tag Helpers
![Page 63: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/63.jpg)
Validation Tag Helpers
![Page 64: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/64.jpg)
Publishing
![Page 65: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/65.jpg)
Publishing
![Page 66: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/66.jpg)
Publishing
![Page 67: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/67.jpg)
Publishing
![Page 68: Introduction to ASP.NET 5 and MVC 6 - Meetupfiles.meetup.com/16095872/ASPNET5MVC6.pdf · •Windows-only server that allows ASP.NET to be hosted outside IIS, •Runs directly on Http.Sys](https://reader030.fdocuments.net/reader030/viewer/2022040206/5e007885153847426734ee96/html5/thumbnails/68.jpg)
Deploying to IIS
• Point it to the wwwroot folder of published content