Oh, my “Create Unit Test” dialog is empty…
Today I worked on a strange little behavior in the dialog used to create unit tests from code in Visual Studio 2008.
When I choose to create a new unit test the dialog displayed was completely empty:
After searching a bit on the Microsoft support website I found the reason; it turned out that there's a bug in VS 2008 Service Pack 1 that causes this effect when there's a Visual Studio 2008 GDR database project in the solution. Usually I keep the database project outside the main solution but in this case it was included and was causing the trouble. The problem occurs for these project types:
- A Microsoft Visual Studio 2008 Team System Database Edition General Distribution Release (GDR) project
- A Microsoft Silverlight project
- A Windows Installer XML (WIX) project
Fortunately there's a fix available that resolves this issue available here. So I installed and the dialog works fine again!