Reputation: 6798
In my solution, I want to add a folder to which I want to add new projects. What is the procedure for doing this?
I tried to create the folder from within Visual Studio, but it created a 'solution folder'. I have now researched this and found it is an organisational cue, but only a virtual one, and a 'solution folder' is not reflected in the file system.
I then created a directory in Windows explorer, and found that you could click a button in the Solution Explorer window that shows all files. I right-clicked on this and selected Include in Project, making it visible, but when I right click on this folder, I don't have 'Add new project' as an option. Additionally, this folder is part of the main solution project, instead of just being a folder in the solution (if that makes sense). In any event, I can't drag 'n' drop a project into this folder in Solution Explorer, so that isn't the answer.
Rationale: I'm trying to work out how to use prism and want to store modules (which are contained in their own VS Projects in the solution) in a 'Modules' directory.
Upvotes: 2
Views: 4576
Reputation: 2469
The solution folder, as you say, is a virtual thing. You need to create a folder on the file system manually, generally next to your .sln file, and with the same name as the folder you want in Visual Studio. Then add a corresponding solution folder within studio. Right click and add new project on the solution folder, name the new project, then browse it's location to the corresponding folder on the file system, and create the project there.
Upvotes: 2