I have a software project that has the following structure.
- Library A - Library B - Main program - Test for Main
I have four project files (csproj) for each one, but it would be good if I can debugging/compile those projects in a single solution explorer.
No, projects cannot contain other projects in Visual Studio. Solutions are used as the container for projects.
I don't understand why a project container would work but a solution would not. Can you elaborate?
您可以拥有所谓的包含所有项目的解决方案文件。
您可以通过右键单击顶级解决方案并选择添加 - >添加现有项目或添加 - >新项目,将多个项目添加到解决方案
I believe what you're thinking of is a solution. A solution can contain one or more projects:
- My Solution
- Library A
- Library B
- Main Program
- Test For Main
I don't think this is available for VS2010 Express.
You can have solution folders to organize multiple projects, but you can not have a project within projects.
another option is to just move all the class files to one project and create folders for each library that you have. I do this many times to reduce solution clutter
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.