-
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…
-
VSLive Anaheim 2017: ASP.NET & ASP.NET Core Security
I spoke at VSLive Anaheim 2017 this week. As promised, here are my slides and code from the ASP.NET & ASP.NET Core Security talk. Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck. Access the IPrincipal for the current user, call…
-
TFS Build / Release Configuration Utilities: Edit app.config, web.config, appsettings.json, and XML
When you’re working automated builds and automated releases, you frequently need to edit configuration files like app.config, web.config, and appsettings.json. Well, I wrote a command line utility to do this and I figured I’d share. I’ve got a version that is an .exe that can be used on a Windows build agent and I’ve got a version that’s written…
-
Edit a Connection String from a TFS vNext Build
In my last post, I talked about how to create an ASP.NET Web Application that’s easy to deploy from your Team Foundation Server vNext Build (TFS Build vNext). Well, part of the pain of deploying an ASP.NET Web Application (ASP.NET MVC or ASP.NET Web Forms) from a build is dealing with database connection strings. So…
-
An ASP.NET MVC Site That’s Easy to Deploy from a TFS Build
By this point, you’ve probably heard that Team Foundation Server 2015 has a completely new build system. As part of it, it organizese and compiles the code slightly differently than the old XAML-based TFS Build system. First off, when you run a vNext build on a build server, you got four folders: a, b, s, and…
-
VSLive Austin 2016: ASP.NET MVC / Core Security Slides & Code
I spoke at VSLive Austin 2016 last week. As promised, here are the slides & code samples from my ASP.NET MVC / ASP.NET Core Security Authorization Talk. Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck. Access the IPrincipal for the…
-
VSLive Austin 2016: DevOps / Feature Flags Slides & Code
I spoke at VSLive Austin 2016 last week. As promised, here are the slides & code samples from my DevOps / Feature Flags talk. Get Good at DevOps: Feature Flag Deployments with ASP.NET, WebAPI, & JavaScript Want to get good at DevOps but deployments are getting you down? Is the code integration process just plain driving…
-
Walkthrough: ASP.NET Core 1.0 MVC Identity with Microsoft Account Authentication
Setting up ASP.NET social identity providers isn’t exactly 100% straight-forward. The documentation is pretty vague. A couple years ago I wrote a walkthrough guide for setting up Microsoft Account authentication provider for ASP.NET 4.*. Now that the release of ASP.NET Core 1.0 is just around the corner, I’ve started getting requests for a similar walkthrough…
-
Fix for ASP.NET MVC Broken Editor Templates: EditorFor() shows DynamicProxies
Quick fix to a problem that I just hit. I’m writing an application in ASP.NET MVC with Razor and I wanted to use an editor template for a collection on my model. In this case, I’m trying to edit a Person object that has a PersonPhones collection off of it and I wanted to display a custom editor…
-
Utilities for debugging Bootstrap with and without ASP.NET MVC
I was running into a problem while trying to get a Bootstrap form to lay out properly. My problem was that the text of labels was getting rendered under textboxes. As I was playing with various Bootstrap styles on my DIVs – for example, ‘col-md-5’, ‘col-sm-5’, ‘col-sm-offset-1’, etc – it quickly became clear that I…