AttachTo (IIS, IIS Express) extension for VS 2015

UPDATE as of 8/3/2015 9:16:35 AM by AD: It appears that Mr. Whut is updating AttachTo himself now to work with newer VS versions and I failed to realize that. I do not know at what point that he fixed AttachTo, but it would have been nice to know before I went through the trouble. :) I will leave this post in tact for reference.

Well, it’s that time of the year again where we the community band together and patch the AttachTo extension so it will run in the latest version of Visual Studio (2015 in this case).

The original developer is unresponsive, so I forked the repo and have been figured out what it takes to fix it. Last year, Kyle Ballard posted a compiled version of the Visual Studio 2013 update of AttachTo  on his blog.

This year, I figured I’d save everyone some time and offer the download Visual Studio 2015 update for AttachTo directly from my blog.

So… Here it is… Download AttachTo for Visaul Studio 2015

See you again in 2017?

Chocolatey + AutoHotKey = Chocolatey Hotkey (CHK)

UPDATE as of 8/10/2015 9:56:14 AM by AD: I have made a lot of changes to CHK since writing this post, so I just updated it to reflect those changes. If you’re coming here a second time for reference, please take a lot at my second post about CHK.


Wouldn’t it be cool if anyone could quickly and easily install one of your AHK scripts on their own computer?  Or imagine sitting down at someone’s computer and typing a simple command to install an AHK script that you find useful.  And wouldn’t it be cool if others could contribute to this mechanism to create a community of easily installable and maintainable scripts?!?!?

You can now, with Chocolatey Hotkey (CHK). CHK is, essentially, a package manager for AutoHotKey scripts that utilizes Chocolatey for distribution. It is also a great way to modularize your scripts as plugins instead of having one big AHK script that you have to maintain.  …Continue reading “Chocolatey + AutoHotKey = Chocolatey Hotkey (CHK)” [Chocolatey + AutoHotKey = Chocolatey Hotkey (CHK)]

A day of dumb…

I spent all day trying to figure something out in Entity Framework that shouldn’t have taken an entire day to figure out. It was so dumb, I feel obligated to post it here.

The code below illustrates the problem. The Test method is simply trying to add a new Child record to the database. Notice that the Child class contains a nullable foreign key to the Parent class public int? ParentId { get; set; } . In theory, that meant I could create a new Child object without having to associate it with a Parent object.

Except any time I tried to save the record, I’d get an error indicating, ultimately, that a new Parent record was being created. But why? I wasn’t creating a new parent record….

OR WAS I?!!?!?

Here’s the pseudo code.. See if you can spot the problem that took me waaaaayyyy too long to find..  …Continue reading “A day of dumb…” [A day of dumb…]

Taking Visual Studio build and publish events to the next level

2017: Why is this post so popular? It’s always one of the highest viewed posts on my site and I’ve never understood why. When you’re done reading, please leave a comment letting me know.

I just integrated Visual Studio’s web project publish command with Zapier  so I can send build events to Slack.

That’s a twofer, folks. I just killed two birds with one really awesome stone.

Seriously, the possibilities here will blow your mind, especially given how easy it is to make it happen.

First, I’ll explain how I hooked into the publish event. If you’re more interested in the Zapier part, feel free to skip to the next section. …Continue reading “Taking Visual Studio build and publish events to the next level” [Taking Visual Studio build and publish events to the next level]

Automatically Generating a Chocolatey Install Script

Have you ever dreaded formatting your computer because of all the software you know you’re going to have to re-install? Do you wish there was an easier way?

I’m looking at having to format one of the computers in our office and I want it have the same software that I have installed on my primary machine.

Since I use Chocolatey and WebPI to install most of the software on my computer, I was able to create a neat little Powershell script that should save me a lot of time with this task.  …Continue reading “Automatically Generating a Chocolatey Install Script” [Automatically Generating a Chocolatey Install Script]

Smarter Time-limited Caching

[4/10/2015 3:50:03 PM UPDATE: I updated the definition of the Caches class to support injecting dependencies into ICaches<T> implementations.]

[7/1/2017 2:44:53 PM UPDATE: Here’s a dinky little solution that illustrates the caching solution at work:   ConsoleApp1

Also, I hate reading my old posts. :) ]

In many applications, there is a need to globally cache some information for a certain period of time, and then periodically refresh that data the next time it is called upon.

And more often than not, there are several different types of information that we want to cache using this paradigm.  And wouldn’t it be cool if we could call a single method to reset all of the caches we’re holding on to?

Here’s how I like to make that kind of magic happen…  …Continue reading “Smarter Time-limited Caching” [Smarter Time-limited Caching]

My 20 Minute Software Developer Presentation for 7th Grade Career Day

Earlier this week, I had the pleasure of waxing poetic on all that is software development to four groups of 7th graders at a local elementary school. I figured it’d be a good idea to document the experience for other developers who might find themselves in the same situation one day (turns out, I’m not the first developer to do a career day presentation). …Continue reading “My 20 Minute Software Developer Presentation for 7th Grade Career Day” [My 20 Minute Software Developer Presentation for 7th Grade Career Day]

Window Layout Management in Visual Studio 2015

We’ve all been there…  It’s 5pm at work.. You un-dock your laptop from your three 24″ 4k monitors to head home and continue the coding fest from home on your single 17″ CRT monitor that you stole from work ten years ago.

By default, Visual Studio 2013 takes all those windows you had open at work and shoehorns them all to one monitor for your viewing pleasure..  Here’s what my Visual Studio looks like sometimes when I get home: …Continue reading “Window Layout Management in Visual Studio 2015” [Window Layout Management in Visual Studio 2015]