How to use New Solution Folder and Directory correctly
I have a feeling I'm doing something wrong but can't figure out the way I'm supposed to do this.
If I create a new Solution Folder the folder gets added to my solution and appears in the project tree, but it doesn't create the folder on disk. If I create a new Directory in Files view, it creates a folder on disk but it doesn't appear in the project in Solution view.
For now I'm creating every folder/directory twice (once in File view and once in Solution view) but that can't be right, can it?
Please sign in to leave a comment.
Hello Julian,
Thank you for contacting Rider support. It is actually by design. The Solution Folder isn't a real directory. It organizes projects in the solution only; It doesn't imply the filesystem.
Relationships between projects and Solution Folders are declared in the .sln file where the Solution Folder is a project of a specific type:
The project belonging to a solution folder is specified in the
GlobalSection(NestedProjects) = preSolutionsection.Considering the
ConsoleApp2is under the SolutionFolder1:, its GUID is bundled with GUID of SolutionFolder1 in the NestedProjects section:
Physical directories need to be created separate. If you wish to create a project inside a Solution Folder (having a real directory with the name of Solution Folder):
In the window opened ensure to specify the real path you desire a project to be created under:
You might find this article helpful: SUPPORT-A-2593 Adding project does not load relative path
Hope that clears the situation.