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.

2
  • Folders only give the effect of hierarchical structure in Visual Studio - they actually have a flat structure on disc. Commented Aug 8, 2014 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( Commented Aug 8, 2014 at 10:51

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.