Get up to speed on ASP.NET 5

ASP.NET 5 Videos:

  • Introducing ASP.NET 5 (Channel 9)
    • user secret – how to hide your connection strings demo
    • environment config which replaces web.config transform demo.
  • Deep Dive into ASP.NET 5 (Channel 9)
    • Razor page @Inject demo
    • dnx, dnvm, dnu overview
    • debug asp.net for dependency injection bug
    • issues with dependencies for injection and frameworks
    • comments of movements of code in asp.net 5 core using example CultureInfo (core) vs System.Threading(legacy)
    • demo of no longer creating bin debug folder during build and how to produce output to artifacts folder
    • nuspec is not needed as project.json takes care of that
    • nuget package explorer demo (go git it)
    • dnu pack demo
    • how to create a tag helper demo
  • Deep Dive into Microsoft ASP.NET 5 (Channel 9)
    • “‘dnx’ is not recognized as an internal…” how to set active dnx using dnvm demo
    • dnvm use default -p demo to set user and process path for dnx
    • dnu publish --out C:\code\output\yourpath --no-source demo t to publish without source
    • how to create self contained app package example cmddnu publish --out C:\code\output\yourpath --no-source --runtime runtime_folder_name --runtime runtime_folder_name2 if you use .net 4.6 it will still require the framework to be installed. Warning when using multiple –runtime bash file only uses first path passed in.
    • IIS doesn’t know anything about .NET 5. The web.config and asp.netloader put in wwwroot for IIS to work
    • debugging dnx example and structure overview
    • example of how to register Autofac
  • Introduction to Microsoft ASP.NET 5 ASP.NET in a nutshell
    • project.json is replacement for old csproj file
    • ASP.NET 5 empty project template compared to base node.js install
    • Example of adding diagnostic dependencies to project.json
    • Overview of frameworks configuration
    • No more transforms using new configuration library. Framework is pushing configuration towards environment variables. Web.config is still available but only for configuring IIS.
    • project.json for server side configuration, config.json for configuration of application
    • Roslyn formatted string example things in {} are C#.
    • configuration.AddEnvironmentVariables – Comment about how environment variables in azure will override config settings (33:33)
    • Everything in ASP.NET 5 has dependency injection turned on by default (35:08)
  • ASP.NET Community Standup
  • ASP.NET Deep Dive
    • configure is the main of your web app – setup middle ware example (6:40)
    • dnvm is just a script and low overhead to get started. It can be copied directly as files and run (6:00)
    • Example of how an app is portable by configuration. (12:20)
    • Information about omni sharp. Omni Sharp project http://www.omnisharp.net/ (10:10)
    • What is relationship to owin and ASP.NET? ASP.NET is a owin compatible but they have decoupled themselves from the own effort. What that means is owin compatible servers should be able to boot an ASP.Net 5 app and Owin middleware should be able to run via adapters. The ASP .NET 5 stack is to not associated or built on top of the Owin spec. It supports Owin as a feature but not building on Owin as an architecture. (16:00)
    • dnx trace output example (18:05)
    • Why are environment variables pervasive in ASP.NET 5 explanation. They are universal and cross platform. (19:34)
    • Roslyn “compile free” feeling during rapid development example (20:00)
    • DNX running to support visual studio is the design time host or DTH
    • Dependency injection example (25:50)

Documentation Links:

Install ASP.NET 5

  • ASP.NET 5 preview is installed with VS 2015 RC. ASP.NET 5 will still be in beta when VS 2015 goes RTM. Get VS 2015 with ASP.NET 5 from MSDN subscriber downloads or ASP.NET Getting Started