1.0 release shipped in 2002. • Evolved from Ac=ve Server Pages (“classic ASP”). • Introduced .NET Base Class Libraries, designed for developers used to write business desktop applica=ons (VB6, Windows Forms). • New frameworks added: ASP.NET MVC (2008), ASP.NET Web Pages (2010), Web API, SignalR. ASP.NET 5 is not a new version, it’s a new technology based on ASP.NET. (sort of like a step from “classic ASP” to ASP.NET was in 2002)
will s=ll support it) • Side-‐by-‐side installa=on. Does not depend on globally installed components or GAC. • Does not require a build step. (Compiles automa=cally on file save, feels like interpreted language like PHP) • Designed to be used without Visual Studio (uses command line tools instead). Sublime Text and others has syntax plugin. • Can be hosted on IIS or other webserver or inside your own process. • Cloud-‐op=mized. Includes new lean Core CLR (which gets deployed with your app). More cloud ready features like cashing, session state, diagnos=cs, etc. Should work best with Azure cloud services. • Open source, Apache License V2.0, accep=ng contribu=ons (since March 2012).
Framework CLR – full featured .NET framework which includes all exis=ng libraries. • A new .NET Core CLR – refactored version on .NET that ships as set of NuGet packages. Runs mul=ple versions side-‐by-‐side. Exis=ng libraries must be recompiled to run on Core CLR. • Mono – currently enables you to develop on Mac and Linux, will be replaced with MicrosoS supported run=me in future. CLR stands for Common Language Run=me – a system where .NET languages run. (Similar to Java’s JVM or Android’s Dalvik, Node’s V8 JavaScript Engine, etc.)
components using Microsoft.AspNet.Builder; using Microsoft.AspNet.Routing; using Microsoft.Framework.DependencyInjection; namespace HelloMvc { public class Startup { public void Configure(IApplicationBuilder app) { app.UseErrorPage(); // dependency injection system automatically calls this app.UseServices(services => { services.AddMvc(); }); app.UseMvc(); app.UseWelcomePage(); } } }
for. • KRE is a set of soSware that provides everything you need to host and run your app. Command line tools: • KVM – K Version Manager. Lets you switch between versions of kre, install latest, etc. • KPM – KRE Package Manager. Uses NuGet feeds. “kpm restore”, “kpm pack”. • K Command – entry point to run custom commands. Similar to npm scripts feature.
Run command brew tap aspnet/k to tap the ASP.NET vNext related git repositories. If you had already tapped the repo for previous releases, run brew untap aspnet/k to delete the old commands and tap again to get the updated brew scripts. Run command brew install kvm to install KVM. This also automatically install the latest KRE package from https://www.nuget.org/api/v2 feed. Run command source kvm.sh on your terminal if your terminal cannot understand kvm. # Install yeoman npm install -g yo # Install the ASP.NET generator npm install -g generator-aspnet # Run the generator yo aspnet (if it doesn’t work – let’s just watch a video :) https://www.youtube.com/watch?v=qZDRhNw_TPI ) We’ll do it live: Get a feel of it by installing and running on Mac...