Damn Windows Application default solution item
Note: this entry has moved.
Finally I got tired of creating Windows Forms applications by mistake. You know, when you select Add New Project to a solution, it's the first item. I create FAR more class library projects than UI clients!
So, I went to the C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjects folder, open CSharp.vsdir in notepad, and switch the priority of CSharpEXE.vsz with the one for CSharpDLL.vsz. This is the fouth component of each line. It should look like the following:
CSharpEXE.vsz|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2318|20|#2319|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4554|
|WindowsApplication
CSharpDLL.vsz|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|#2322|10|#2323|{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}|4547|
|ClassLibrary
That's it. It will be the first item in the list forever... (until I hit one of those mondays at least)
BTW, there's no magic hacking here, it's documented.