-
“Implementing Security in ASP.NET Core: Claims, Patterns, and Policies” – Slides & Code
I spoke at the New England Microsoft Developers (NEMD) user group last night and gave a talk about security in ASP.NET Core. (A lot of this content is also covered in my new Pluralsight class on ASP.NET Core architecture.) Slides Sample code Implementing Security in ASP.NET Core: Claims, Patterns, and PoliciesThere are two sides to…
-
New Pluralsight Course: Architecting an ASP.NET Core MVC Application for Unit Testability
My latest Pluralsight course just went live a couple of days ago — Architecting an ASP.NET Core MVC Application for Unit Testability. I’ve been wanting to write this course for at least a couple of years now. I like to think of is as the missing modules from all my TFS and DevOps classes. When…
-
Slides & Code from VSLive San Diego 2018: Feature Flag Deployments with ASP.NET Core & WebAPI
I just wrapped up my “Get Good at DevOps: Feature Flag Deployments with ASP.NET & WebAPI” talk at VSLive San Diego 2018. As promised, here are the slides and the code from the talk. (If you’re wondering, yes, I’ve upgraded the code to use .NET Core 2.1.) Get Good at DevOps: Feature Flag Deployments with…
-
Deploy Entity Framework Core 2.1 Migrations from a DLL
We’ve got a new version of .NET Core and a new version of Entity Framework Core (EF Core). Unfortunately, EF Core 2.1 hasn’t made it any easier to deploy database migrations from DLLs rather than from the source code. (sigh) Deploying EF Core migrations from DLLs is a key feature for DevOps CI/CD stuff —…
-
Workaround for EF Core 2.1 error: Your startup project ‘project-name’ doesn’t reference Microsoft.EntityFrameworkCore.Design
If you’ve followed this blog for a while, you know that I’m obsessed with being able to deploy Entity Framework Core (EF Core) migrations from published (“dotnet publish”) DLLs instead of from the project code. Why? Because if you care about DevOps-y things like automated deployments — especially in Visual Studio Team Services — you…
-
ASP.NET Core & Azure Easy Auth with Multiple Authentication Providers (Including Development Mode)
I’ve been neck deep in Azure App Authentication (aka. Easy Auth) lately trying to get it to work with ASP.NET Core applications. I wrote a bunch of labs/walk-throughs last week to demonstrate how to make it work. Here are the posts in the Azure Easy Auth series: Lab 1, Lab 2, Lab 3, Lab 4,…
-
Walkthrough: Part 5, ASP.NET Core Claims-based Security using Azure App Authentication & the /.auth/me Service Endpoint
I’ve been working doing a lot more with Azure Web Apps lately and found that there are some basic things that it’s hard to find information on. So I decided to write some labs. This is the fifth post in a series. The overall goal of these labs is to teach you how to create…
-
Walkthrough: Part 4, Azure App Service Authentication with a Mix of Public and Protected ASP.NET Core MVC Pages
I’ve been working doing a lot more with Azure Web Apps lately and found that there are some basic things that it’s hard to find information on. So I decided to write some labs. This is the fourth post in a series. The overall goal of these labs is to teach you how to create…
-
Walkthrough: Part 3, Publish ASP.NET MVC Core Application to Azure Web App
I’ve been working doing a lot more with Azure Web Apps lately and found that there are some basic things that it’s hard to find information on. So I decided to write some labs. This is the third post in a series. The overall goal of these labs is to teach you how to create…
-
Force ‘dotnet publish’ to publish dependencies using PublishWithAspNetCoreTargetManifest
I ran into a problem today doing an automated build for a ASP.NET Core 2 project and then trying to deploy the output. From the command line, I ran “dotnet publish -o c:\temp\presidents” to build and publish the code for my ASP.NET Core web application. Then I went to the directory that I just published…