How to convert an existing assembly to a ms unit test assembly?
问题 In Visual Studio 2010 Pro, how can I easily convert a classic assembly to a ms unit test assembly ? It there a flag to activate in the .csproj file ? 回答1: The problem is that test projects are "marked" on the project file - you can convert a class library to Test project follow these four simple steps: Unload the project (.prj) file and then open it for update. add the following line to the project C#: <Project> <PropertyGroup> <AssemblyName>....</AssemblyName> <!-- add this line below -->