0

Older VS (using C++) allowed (as far as I can remember) grouping of related sources to sort of groups. Something like Headers group, Sources group etc.

Is it possible to group files in such way in VS2013 using C#? Even if it does mean manual edit of the project xml files.

The only way I have found is to create a Folder, but the requirement is to have flat structure on disk and tree structure in project.

Edit:
It is called Filter in the C++ projects.
And it seems impossible for C# as already discussed here.

Community
  • 1
  • 1
sharpener
  • 1,383
  • 11
  • 22
  • Folders only give the *effect* of hierarchical structure in Visual Studio - they actually have a flat structure on disc. – User 12345678 Aug 08 '14 at 10:48
  • Unfortunately this does not apply for C# project: Using Add/New Folder the VS adds a folder named NewFolder1 and also creates this directory in the source tree. If you delete such directory it claims the folder has been deleter or moved etc :o( – sharpener Aug 08 '14 at 10:51

1 Answers1

1

I think the only Folder that matches is the Solution Folder, but you cannot use it inside a Project, only in solution Level.

You can group files or Projects in it.

Solution -> Add -> New Solution Folder

S.L.
  • 1,056
  • 7
  • 15