What's the best way to create folder structures based on conventions in C#

c#

Solution

General suggestions about structuring .NET projects:

- How to setup a .NET Development Tree by Mike Roberts

- How do you organize your code? by Scott Hanselman

Once you have a well-structured project template, then you can make copies of it, and use these copies to start user projects.

A better approach would be to put the template project under version control, and check it out on developer machines. Use a DVCS: developers could clone the template project to start user projects, and template modifications could be distributed by pulling changes from the template project repo to the user project repos.

A .NET development tree generator: Tree Surgeon

Problem

My C# Application handles multiple user projects. The projects are application specific (I'm not talking about dev projects). The projects files are stored in a particular folder structure. Such a structure could be: - ProjectA - Import - Export - Products - Documentation - Customerinfo - ProjectDescription.xml While adding a new project I need to automatically create a default folder structure (directories and files) based on a certain convention / schema. What's the best way to: define such a convention / schema create the structure in C#? Are there any frameworks? Do I need to build it manually using Factory methods?

Original source