Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 through my webform application. So i am now changing some of the way the application has been implemented as i have now added a webservice project which will handle all the call to the database via my Data Access Layer. Now i am unsure whether i should leave my 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 which will be used by the web application. Is there a way to convert a folder to a project so i can include it in the solution as a seperate project.

like image 717
floormind Avatar asked Oct 31 '22 15:10

floormind


1 Answers

To add folder with files:

  • Copy folder into a new project (near other file which is already in this project);
  • Select that project (or any file inside it);
  • Toggle "Show All Files"

  • You will see dimmed folder;

  • Right click it, "Include In Project".

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

like image 87
Sinatr Avatar answered Nov 09 '22 23:11

Sinatr