Skip to main content
ASP.NET 5
Dave Voyles
Dvoyles@Microsoft.com
Agenda
1) State of Affairs
2) ASP.NET 5 – New Approach
3) MVC 6
4) Demo
.NET – Current state of Web and Services
Productivity of Visual Studio + Flexibility of Web
Interactive HTML / CSS tools for web apps that look and behave the
same across any browser
Powerful tools and technologies for interactive apps
Develop JavaScript/TypeScript complex logic with powerful editing,
debugging and diagnostics.
Supports demanding needs of LOB apps
Hybrid cloud requirements, flexibility, productivity,
Tools to develop and test complex web applications that scale.
“Our role is more important than ever before”
“We are required to innovate and deliver much faster”
“I need a cross-device development strategy”
“Open Source enriches the platform and the community”
“…but I have existing applications to run and evolve”
On the minds of
business leaders
and the technical
community…
Our new approach to building .NET
ASP.NET 5:
The Future of .NET on the Server
New flexible and cross-platform runtime
New modular HTTP request pipeline
Built cloud ready
Agile development with the tools of your choice
Open source
New flexible and cross-platform runtime
•Flexible and cross-platform CLR hosting
• .NET - Maximum compatibility
• Cloud Optimized – Be fully self-contained and support
true side-by-side versioning!
• Mono – Run on Mac/Linux!
•Better dependency management
• Assembly references → NuGet package dependencies
•Integrated runtime compilation with Roslyn
.NET - Cloud Optimized
•Slimmed down to just the “Core” (a.k.a. CoreCLR)
• No WinForms, WebForms, WCF, WIF, WF, etc.
•Modernized API surface area
• Use tool to find out what’s
different
•Factored as NuGet packages
•True side-by-side versioning
New modular HTTP request pipeline
•Modular
•Fast and lean
•Flexible hosting
•Supports OWIN
Built cloud ready
•New environment based config system
• No more complicated web.config and config transforms
•Integrated DI
•Reduce COGS
•Integrated tracing and diagnostics
• ETW, App Insights
Agile development
•Premier developer experience in Visual Studio 2015
•Leverage online or third party editors
•Cross-platform command-line support
k k runtime – runs the application
kvm k version manager
installs / manages versions
kpm k package manager
installs / manages packages
ASP.NET 5 - Compatibility
• Web Forms, MVC 5, Web API 2, Web Pages 3, SignalR 2, EF 6
• Fully supported on .NET vNext
• MVC, Web API, Web Pages 6, SignalR 3
• Run on new runtime and request pipeline only (no System.Web.dll)
• Merged MVC, Web API, Web Pages framework
• New project system
• New configuration system
• .NET vNext (Cloud Optimized)
• Subset of the .NET Framework
• Modernized API surface area
• Things you depend on might not be available yet (images, etc)
The world today – similar, but different
MVC + Web API + Web Pages =
ASP.NET MVC 6!
Frameworks – all the familiar faces
• MVC 6: Aligned MVC, Web API, Web Pages
• One set of concepts – remove duplication
• Web UI and Web APIs
• Smooth transition from Web Pages to MVC
• Built DI first
• Runs on IIS or self-host
• Based on the new request pipeline in ASP.NET 5
• Runs cloud-optimized!
• Other frameworks you know and love
• SignalR, Identity, Entity Framework
ASP.NET 5 Demo
Creating an ASP.NET 5
Empty Application
ASP.NET 5 Resources
ASP.NET 5