1

Start using Dependency Injection with ASP.NET Core

This is post 10 of 10 in the series “ASP.NET Core from scratch using the command line (project.json edition)” ASP.NET Core ships with a built-in Dependency Injection Framework. DI frameworks give you a way to set up all your dependencies in one place. You can then use these dependencies anywhere in your web application. The common approach is to inject …

4

Troubleshoot your ASP.NET Core web app using logging

This is post 7 of 10 in the series “ASP.NET Core from scratch using the command line (project.json edition)” You’ve created your new ASP.NET Core web app and are happily building your features. Then something breaks and you’ve no idea what. How can you find out what’s causing the problem? If you’ve created your ASP.NET Core web app from scratch …

19

Use ASP.NET Core against .NET 4.6

It is possible to build an ASP.NET Core app and target .NET Framework 4.6.x. That way you get to try out the new web framework but still use your existing libraries and the tried and tested framework.

8

How to serve static files for your Single Page Application from .NET Core

This is post 5 of 10 in the series “ASP.NET Core from scratch using the command line (project.json edition)” If you want to host your SPA app on .NET Core you’ll need to make sure your application is set up to serve your SPA’s static html and javascript files. First of all make sure you’ve got a .NET Core web …

10

The basics of publishing your .NET Core web app

There are lots of options for hosting your .NET Core application, especially now you can choose linux and take advantage of potentially cheaper hosting.
Whatever you choose, a useful first step is figuring out how to package up your app so you can publish it to your chosen host.

8

Compile your changes on the fly with .NET Core Watch

This is post 3 of 10 in the series “ASP.NET Core from scratch using the command line (project.json edition)” You’ve set up your .NET Core web app, and maybe added MVC to it. As you work on your site, you’ll find yourself repeating the following over and over again. CTRL-C (to stop the application) This gets a little frustrating after …

19

How to add MVC to your ASP.NET Core web application

This is post 2 of 10 in the series “ASP.NET Core from scratch using the command line (project.json edition)” You’ve seen how to create your first simple web application using just the command line. Now let’s add MVC to the picture. Start off by modifying project.json to require the MVC packages. As with all dependencies, you’ll need to ensure it’s …