Demo source code and links for Lynda.com Up and Running with ASP.NET 5 training course
- 1.0.0-beta4 (what is shown in the videos): Sample application code
- 1.0.0-beta6: Sample application code
- 1.0.0-beta7: Sample application code
- 1.0.0-beta8: Sample application code
beta4 to beta8 (Full file comparison)
Updated Tooling
- Download and install: Microsoft.NET and Web Tools 2015 (Beta8)
Namespace/Library changes
- Hosting in IIS via the
Microsoft.AspNet.Server.IISpackage is no longer supported and has been discontinued- Replaced with IIS 8.0
httpPlatformHandlermodule configured viaweb.config
- Replaced with IIS 8.0
Microsoft.Framework.ConfigurationModelrenamed toMicrosoft.Framework.ConfigurationMicrosoft.Framework.Runtimerenamed toMicrosoft.Dnx.Runtime
API changes
- Configuration
- [Startup.cs: line 21] Must use
ConfigurationBuilderinstead ofConfigurationto create configuration objects - [Startup.cs: line 21] New
ConfigurationBuilderrequires base path for configuration files; injectIApplicationEnvironmentinto theStartupconstructor [Startup.cs: line 19] and pass the value ofIApplicationEnvironment.ApplicationBasePathintoIConfiguration.SetBasePath() - [Startup.cs: line 26] Must call
.Build()after adding configuration sources to generate configuration object
- [Startup.cs: line 21] Must use
- Diagnostics
- [Startup.cs: line 68]
.UseErrorPage()middleware has been renamed to.UseDeveloperExceptionPage() - [Startup.cs: line 72]
.UseErrorHandler()middleware has been renamed to.UseExceptionHandler()
- [Startup.cs: line 68]
- Entity Framework
- [BlogDataContext.cs: line 36]
ModelBuilder.ForSqlServer()extension no longer provided/required - removed entire extraneous section
- [BlogDataContext.cs: line 36]
- Identity
- [AccountController.cs: line 58] Synchronous version of
SignInManager.SignOut()no longer offered - must use.SignOutAync().
Also converted the controller action to an async action, though this is not required
- [AccountController.cs: line 58] Synchronous version of
beta4 to beta7 (Full file comparison)
Updated Tooling
- Download and install: Microsoft.NET and Web Tools 2015 (Beta7)
Namespace/Library changes
Microsoft.Framework.ConfigurationModelrenamed toMicrosoft.Framework.ConfigurationMicrosoft.Framework.Runtimerenamed toMicrosoft.Dnx.Runtime
API changes
- Configuration
- [Startup.cs: line 21] Must use
ConfigurationBuilderinstead ofConfigurationto create configuration objects - [Startup.cs: line 21] New
ConfigurationBuilderrequires base path for configuration files; injectIApplicationEnvironmentinto theStartupconstructor [Startup.cs: line 19] and callIApplicationEnvironment.ApplicationBasePath - [Startup.cs: line 26] Must call
.Build()after adding configuration sources to generate configuration object - [Startup.cs: lines 55, 65]
IConfiguration.Get()no longer offered - must use array indexer, which returns a string
- [Startup.cs: line 21] Must use
- Entity Framework
- [BlogDataContext.cs: line 36]
ModelBuilder.ForSqlServer()extension no longer provided/required - removed entire extraneous section
- [BlogDataContext.cs: line 36]
- Identity
- [AccountController.cs: line 58] Synchronous version of
SignInManager.SignOut()no longer offered - must use.SignOutAync().
Also converted the controller action to an async action, though this is not required
- [AccountController.cs: line 58] Synchronous version of
beta4 to beta6 (Full file comparison)
Namespace/Library changes
Microsoft.Framework.ConfigurationModelrenamed toMicrosoft.Framework.Configuration
API changes
- Configuration
- [Startup.cs: line 21] Must use
ConfigurationBuilderinstead ofConfigurationto create configuration objects - [Startup.cs: line 21] New
ConfigurationBuilderrequires base path for configuration files; injectIApplicationEnvironmentinto theStartupconstructor [Startup.cs: line 19] and callIApplicationEnvironment.ApplicationBasePath - [Startup.cs: line 26] Must call
.Build()after adding configuration sources to generate configuration object - [Startup.cs: lines 55, 65]
IConfiguration.Get<T>()no longer offered - must use non-generic version, which returns a string
- [Startup.cs: line 21] Must use
- Entity Framework
- [BlogDataContext.cs: line 36]
ModelBuilder.ForSqlServer()extension no longer provided/required - removed entire extraneous section
- [BlogDataContext.cs: line 36]
- Identity
- [AccountController.cs: line 58] Synchronous version of
SignInManager.SignOut()no longer offered - must use.SignOutAync().
Also converted the controller action to an async action, though this is not required
- [AccountController.cs: line 58] Synchronous version of