• asp.net-5
  • ASP.NET 5 Logging

    Logging lets your application capture run-time information that can prove invaluable when debugging problems or analyzing performance issues.  ASP.NET 5 has a default logging implementation that logs to the console, debugger, event log, or to a trace source.  If these targets don’t meet your application’s needs, you can replace the default implementation with a third-party solution, or […]

  • asp.net-5
  • ASP.NET 5 Configuration – Settings Classes

    In earlier Configuration examples, we used IConfigurationRoot to access settings with a string key, which returned a string value.  In the following example, we’ll see how to configure typed access to settings. The code snippets shown here are from the command line example project. You can find both the command line project and a Visual Studio 2015 […]

  • asp.net-5
  • ASP.NET 5 Configuration – Environment Specific Settings

    ASP.NET 5 lets us use an environment variable named ASPNET_ENV to specify the environment that an application is running in (the variable can also be named Hosting:Environment). You can use any value for the environment name, but “Development”, “Staging”, and “Production” are used by convention. Note: In earlier releases of ASP.NET 5, the environment variable name […]

  • asp.net-5
  • ASP.NET 5 Configuration – Using the Built-In Providers

    In older versions of ASP.NET, configuration information was stored in XML files, with a machine.config file for machine-wide settings and one or more web.config files for ASP.NET site settings.  ASP.NET 5 introduces a new configuration system, allowing configuration information to come from files (JSON, XML, INI), environment variables, or custom configuration providers. In this post, we’ll […]

  • asp.net-5
  • ASP.NET 5 on Linux

    As mentioned in my last post, ASP.NET 5 is only supported on version 14.04 of Ubuntu. I know this because I originally installed it on version 15.10 only to have dnu and dnx silently fail. After much time spent troubleshooting, I found out 15.10 is not supported and started over with 14.04. Here are my notes […]