简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM