Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change “Class Library Project” into “Test Project"?

While working on ASP.NET MVC3 application, by mistake I have added a Class library as a Unit Test project. But unfortunately I don’t see the "Run Tests" from context menu to test the methods which are created for unit testing .

Is there any way to convert the “Class Library Project” into a “Test Project” ?

like image 561
Padmalochan Avatar asked May 29 '12 11:05

Padmalochan


People also ask

How do I change the output type to a class library?

In the Solutions Explorer window, right-click the exe project and then select Properties in the popup. Then change the Output type from Windows Application to Class Library.

How do you fix project with an output type of class library Cannot be started directly?

A project with an Output type of Class Library cannot be started directly In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.


1 Answers

There is a property type guid in the project file. Look at this post: How does Visual Studio /mstest identify test projects?

like image 160
Marian Ban Avatar answered Oct 12 '22 08:10

Marian Ban