Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert Web application project to Class library project

I need to convert a project started as a Web Application to a Class Libray, is this possible?

Thanks

like image 979
Marco Bettiolo Avatar asked Feb 13 '09 17:02

Marco Bettiolo


People also ask

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

Solution. Right click on the Solution Explorer of your project in the right top corner of the IDE and the select the Properties option located in the dropdown menu. Now from the Solution Property Pages dialog that appears, select the StartUp Project list option.


1 Answers

The correct answer is yes. Just edit the csproj (msbuild) file and change the ProjectGuid and remove the ProjectTypeGuids:

<ProjectGuid>{9845066A-3C9E-4F51-8F5F-8F513E8D03C1}</ProjectGuid> 

It really is that simple.

like image 171
JarrettV Avatar answered Oct 14 '22 18:10

JarrettV