Software Expressions

.Net / Software / Visual Studio / TFS / other ramblings
 

Goto

Categories

 

Convert Class Libary to Test Project


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.

Leave a Reply

Couldn't find your convert utility. Check that you have ImageMagick installed.