Debugging Visual Studio Extensions

Writing Visual Studio Extensions has gotten much easier with recent versions of Visual Studio, but figuring out how to debug them can be hard. When you debug an extension, you run it in an instance of Visual Studio using a separate set of settings called an experimental hive. When you launch this from Visual Studio, it takes care of installing your extension and the debugger is attached to Visual Studio itself.


Read more

Introduction to Unit Tests with NUnit

You have a new project and you want to add unit tests, where do you start?  This tutorial walks you through adding an NUnit test project, writing your first tests and running them in Visual Studio.

This walk-through assumes you already have a project that you want to test. I am starting here with a project that contains a simple class that contains an extension method that converts an enum value to a friendly string by splitting the enum name at capitals. For example, System.Windows.Forms.Keys.BrowserBack would become “Browser Back”. (more…)

Read more