Elevate Your Visual Studio TODOs

I recently had an instance when making a hot fix where I left some unintended code behind.   This is a constant worry of mine – trying to not forget to remove a temporary value during a quick true-up, or maybe a clearing a change only meant locally, deleting tweaks never meant to be committed.  I tried diligently setting up TODOs, but with large solutions, it became impossible to discern between future todos and immediate todos.

The Fix: Warn About TODOs Extension

Visual Studio Extension: Warn About TODOs

Luckily, I found a Visual Studio tool for this:  Warn About TODOs. This handy extension lets you flag your TODOs with varying degrees of severity and puts each in your error list, making them harder to miss.

Continue Reading

.Net Core – Drop Down (Select) Won’t Populate

I had a recent bug that took me much too long to solve and the root of the cause was me. I got a bit too delete happy and deleted a crucial file that allows me to use Razor Tag Helpers to bring a List into a View as a Drop Down (Select).

The Error

Here’s how the error presented itself:

  • SelectList won’t populate
  • Select or DropDown is empty
  • value = Microsoft.AspNetCore.Mvc.Rendering.SelectList or
  • System.Linq.OrderedEnumerable2 [Microsoft.AspNetCore.Mvc.Rendering.SelectListItem, System.String]
Continue Reading