Presentation for Dutch Microsoft TechDays 2015:
The ASP.NET Framework is rebuilt from the ground up in version 5. On the surface it might still resemble the ASP.NET you have come to know in the past 13 years. Underneath the covers there are immense changes in the way ASP.NET works. It is designed with modern software development practices in mind and clearly shows the shift in Microsoft's approach to web and cross-platform and open source development. In this session you will see the most important parts of ASP.NET 5 and get a glimpse into the future of .NET as well.
3. Agenda
• Overview .NET vNext and ASP.NET 5
• Tenets of ASP.NET
• Open source and cross-platform
• Command-line first
• Symmetry
• Modern Web Architecture
• Wrapup
• Summary
• Questions and Answers
6. ASP.NET 5 and the Modern Web
A big shift for Microsoft
Choose your editors
and tools
Open Source
with contributions
Cross-Platform
Seamless transition
from on-premises to cloud
Faster development
cycleTotally modular
Fast
8. .NET FX vNext Technology Stack
Host
Mac OS X
Linux
Self
Hosted
“Helios”
IIS
IIS Native ModuleIIS Native Module
CLR Core CLR Mono CLR
.NET Base Class Library
ASP.NET 5
Windows
Cloud/Server optimized
9. ASP.NET 5 on .NET FX vNext
Full .NET CLR
•Entire API set in
machine wide install
(200 MB)
•Updated with OS
•Ecosystem of existing
packages
•Backward compatibility
•Default for
Visual Studio 2015
projects
Cloud Optimized CLR
•Lean and modular
runtime (11 MB)
•Optimized for server
•Small memory footprint
•Libraries in NuGet
packages
•Framework deployed
with app
•Different versions can
run side-by-side
Mono
•Cross-Platform runtime
for Linux and Mac OS X
•Together with Mono
community
ASP.NET 5.0 ASP.NET 5.0 ASP.NET 5.0
10. Tenets from ASP.NET team
Command-
line first
• Facilitate cross-
platform
• Visual Studio
2015 for
premium
experience
Symmetry
• Between
command-line
and visual studio
• Between server
and cloud
• It just works by
default in the
cloud and on-
premise
Open source
• All code visible
(even during
development)
• Contributions
from community
Light-weight
and Pay-as-
you-go
• Only include
what you use
13. Open sourcing ASP.NET
Find it all here
• github.com/aspnet
• github.com/dotnet/home
Help and feedback
• JabbR:
https://jabbr.net/#rooms/
aspnetvnext
• ASP.NET forums:
http://forums.asp.net
Have a look in the kitchen
14. .NET Foundation
• Focused on .NET FX
• Apache 2 license mostly
• No platform restrictions
Fostering open development and collaboration
16. DNX - .NET Execution Environment
• Compilation system
• SDK tools (DNVM, DNU)
• Native CLR hosts
Code required to bootstrap and run an application
Goals
• Change code and run
• Expose metadata about the
runtime for others to query
• Create a cached version of
your application's
dependencies ("compilation")
Principles
• NuGet all the things
• There is no such thing as
"design time"
• Dependencies are always
described as what not where
21. Text before UI
• Everything from text
files
– Projects
– Configuration
– Preferences and
options
– Launch settings
• JSON is preferred
data format
Return of the text files
22. New project system
.csproj is gone. Long live project.json
• Independent of Visual Studio
• JSON files instead of VS artefacts
• Every file is relevant
– Unless stated otherwise
• Specific folder structure
• Build for multiple target frameworks
24. NuGet all the things
• NuGet packages are
unit of reference
– Not assemblies
Projects:
• build NuGet packages
• reference NuGet
packages
Simplify dependency management
26. Deploying ASP.NET 5 applications
With source code Without source code
XCopy deployment
27. Global tools
• DNX console applications in a NuGet package
• Installed globally
• Runnable from command line.
Example: User-secret
28. Assembly Neutral Interfaces
• Allows an interface's identity to not be tied to its assembly
– Interface used as a contract
– No requirement on shared binary asset (compile-time and
run-time)
• Interfaces must be identical
– Exact same types and marked with [AssemblyNeutral]
[AssemblyNeutral]
public interface ILogger
{
void Log(string message);
}
30. Your feedback is important!
Scan the QR Code and let us know via the TechDays App.
Laat ons weten wat u van de sessie vindt!
Scan the QR Code via de TechDays App.
Bent u al lid van de Microsot Virtual Academy?! Op MVA kunt u altijd iets
nieuws leren over de laatste technologie van Microsoft. Meld u vandaag aan
op de MVA Stand. MVA biedt 7/24 gratis online training on-demand voor IT-
Professionals en Ontwikkelaars.