0

We have a big C# project in Visual Studio with multiple applications under it. Developers add their application in the project by creating folders manually. I was wondering if we can automate this using templates or macro. I guess adding folders and items under it is difficult. I was thinking about macros or something else?

Is there a way to create folders automatically under an existing C# project in VS 2010? I was thinking if we can provide the macro to the developers of that C# project to run it to create folders for their application.

Sri Reddy
  • 6,832
  • 20
  • 70
  • 112
  • Are you really sure you want to "add a new application" as a subfolder to a project. I smell a rat. A whole family of them actually. – Casper Leon Nielsen Jan 04 '13 at 17:39
  • Creating a new project automatically also creates the folder for it, as specified in the dialog. Hard to see the point in automating that. – Hans Passant Jan 04 '13 at 18:04
  • Ok, I know it smells rat and I smelt it too :) and it is no good. But I have to work on what they have from years. How about I say we have a C# project (middle tier) that has some folders like 'Orders', 'Products', etc and each has subfolders 'Data', 'Model', etc under it. I don't want to create them manually. I want to create this structure for new folders in visual studio using macro (may be). – Sri Reddy Jan 04 '13 at 19:46

2 Answers2

0

Believe you're talking about Visual Studio Project Templates:

JerKimball
  • 16,584
  • 3
  • 43
  • 55
0

Have a look at http://studioshell.codeplex.com/ This exposes the dte extensibility model to powershell.

Chriseyre2000
  • 2,053
  • 1
  • 15
  • 28