Is there a way to convert a folder to a project in Visual Studio 2012?

I have a folder with represents the business logic of my application, it contains a list of classes used in my web application. So now I am changing some of the way I implement the application as I have now added a webservice project that will handle the entire database call through my data access layer. Now I'm not sure if I should leave the Business Logic classes in the web application project and reference it in my web service project because I want the web service methods to return classes that will be used by the web application. Is there a way to convert the folder to a project so I can include it in the solution as a separate project.

+3


source to share


1 answer


To add a folder with files:

  • Copy the folder to a new project (next to another file that is already in this project);
  • Select this project (or any file within it);
  • Toggle Show All Files

  • You will see a dim folder;


  • Right click it, "Include in Project".

He should add all the files inside this project and choose the most appropriate "Build Action". If not, just open the Properties ( Alt+ Enter) window and set the Build Action individually for each file.

+1


source







All Articles