This entry was posted on Wednesday, February 4th, 2009 at 8:53 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Converting a class library in Visual Studio 2008 to a Test Project is as easy as opening up: the .vbproj or .csproj in NotePad and adding a ProjectTypeGuids element under the PropertyGroup element. This should be around the AssemblyName element.
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
There is one more catch. If you convert multiple Class Libraries, the second guid must be unique. Otherwise you will receive the “A project with the same name is already opened in the solution” error when adding the second Test Project or when you open the solution.