2

Keep your ASP.NET Core application’s secrets safe during development

You’re building an ASP.NET Core web application and you realise you need to access sensitive configuration details such as passwords, connection strings etc. You need configuration values for your Development environment (e.g. connection details for your local database etc.) and different values for use in Production. Why not just store your secret values in the code? You could just put …

3

Secure your ASP.NET Core MVC and Web API app using Google

Last time we took a look at the big picture when it comes to authentication/authorization for your ASP.NET Core app. Now it’s time to tackle a common scenario – securing your .NET Core Web app (even when accessed via Angular). To keep things simple for this example, we’re going to require our users to log in as soon as they …

2

Login & Authentication for your ASP.NET Core Web API – The Big Picture

You’re building an ASP.NET Core Web API which is primarily going to serve a Single Page Application (Angular, ReactJS or something else) and/or other clients. You realise that you need to make your API secure. If you don’t, it won’t take much effort for someone to start poking around, doing whatever they like to your data. It’s surprisingly difficult to …

Making sense of the different versions of .NET Core (runtime and SDK)

The .NET Core journey has been confusing for most. We’ve had alphas, betas and release candidates. All the way through, both the Runtime and Tools (SDK) have been changing at a rapid pace. Microsoft decided late on to drop the new project.json file in favour of a revamped csproj project file. Consequently your applications created using older versions of the …

4

Add MVC to your ASP.NET 1.1 application using the dotnet command line

This is post 2 of 2 in the series “ASP.NET Core from scratch using the command line (csproj edition)” If you’re using Visual Studio Code or another text editor to work on your ASP.NET Core web app then you’ll want to know how to add (and start using) MVC/Web API. Last time out we started with a minimal ASP.NET Core …

Create a minimal ASP.NET Core 1.1 web application using the command line

This is post 1 of 2 in the series “ASP.NET Core from scratch using the command line (csproj edition)” You want to build a .NET Core web application and keep it to the bare minimum files and dependencies to start with. We all remember the “Basic” vs “Empty” MVC templates from Visual Studio’s recent past. Do you want your app …

5

Use ASP.NET Core 1.1 with .NET 4.6 (without Visual Studio)

If you want to try out ASP.NET Core but still target the full framework (e.g. 4.x) you can. All you need is a simple tweak to your .csproj file. In earlier versions of .NET Core this change was made via project.json but Microsoft retired project.json in favour of an MSBuild compatible csproj file. Why would I want to target .NET …

68

Create an Angular 2 and .NET Core app that can be edited using Visual Studio 2017

In the recent series on using Angular 2 and .NET Core to check the weather we used the ASP.NET Core Template Pack to save time manually installing/configuring Webpack, Node, Angular etc. That works well if you want to create your new projects using the new project wizard in Visual Studio 2015. But what if you’re using using Visual Studio 2017? …

19

Send form input via an Angular 2 component to ASP.NET Core Web API

This is post 6 of 6 in the series “Checking the weather with Angular 2 and ASP.NET Core” So far we’ve set up a basic Angular 2 and .NET Core web application and made it retrieve the weather for London which is then displayed via an Angular 2 component. However, unless all of your users live in London, you’ll want …

8

Fetch the current weather using ASP.NET Core Web API and OpenWeather

This is post 5 of 6 in the series “Checking the weather with Angular 2 and ASP.NET Core” Sometimes you need to access someone else’s API from your web application. Here we’ll take a look at calling the OpenWeather API from a Web API controller in your .NET Core web app. So far we’ve created an Angular 2 .NET Core …