Writing Clean Code in ASPNET Core with DI

Writing Clean Code in ASPNET Core with DI

I’ve started writing a series on ASP.NET Core for MSDN Magazine. If you’re not a subscriber to the dead trees version, you can read them online. My first article is on Writing Clean Code in ASP.NET Core with Dependency Injection, in the May 2016 issue. Here’s a brief intro: ASP.NET Core 1.0 is a complete […]

How to Target netcoreapp and net461 from ASPNET Core

The default templates for ASP.NET Core RC2 apps only target “netcoreapp1.0”. If you wish to have one app target multiple frameworks, you can do so by first adding the new framework to the list in project.json (e.g. “net461” for .NET Framework 4.6.1). However, once you do this you’ll get an error that Microsoft.NETCore.App is broken […]

How To Specify Framework When Running ASPNET Core Apps

How To Specify Framework When Running ASPNET Core Apps

In .NET Core, you can target multiple frameworks from the same application. Where there are incompatibilities, you can use precompiler directives, like so:

However, if you have this in an application that also runs “netcoreapp1.0” it will probably run with that by default. To force it to run using .NET Framework 4.6.1 (or whatever […]

Upgrading from ASPNET Core RC1 to RC2 Guide

Upgrading from ASPNET Core RC1 to RC2 Guide

There are a number of breaking changes between ASP.NET Core RC1 and RC2. If you have existing apps targeting RC1, here are some things you should expect to change in order to upgrade the apps to RC2. Consider this an “unofficial” guide. Update: The official docs have a bunch of great content on this as […]

ASP.NET Core Training – June 2016

ASP.NET Core Training – June 2016

If you’ve been wondering when the time would come for you to start learning about ASP.NET Core, it’s quickly approaching. ASP.NET Core RC2 should be available some time in the next few weeks, and I’m going to be teaching a 2-day online class on ASP.NET Core June 14-15 2016. The first day will cover ASP.NET […]