0

Hey. I've a very large C# solution, with many projects that are messy in many locations in my computer. I want to send the solution to a friend. Is there any tool to copy the solution to a new directory, with all the projects in it, cleaned and organized?

Thanks.

Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288

4 Answers4

8

Nope, not as far as I know.

I would suggest you copy and paste them manually in the structure you want and then simply open the solution file in any plain text editor and fix it so it references the appropriate subfolders with proj files in.

It's a very trivial task to do manually.

Wim
  • 11,998
  • 1
  • 34
  • 57
3

How about cleaning it up in the first place?

Friends don't share messy solutions with friends

Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
2

No, unfortunately not ... you will have to copy each project into a folder, open the solution, and then reset every single project reference until it builds. Then you can zip up that one folder and send it

this is why one should always make their solutions so that each project is relative to the solution under the same folder :-)

Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
  • 1
    This approach can be made easier if you open up the solution file in a text editor. First you will see the location of all project files and you can then update manually with the new location. – Dirk Vollmar Dec 18 '09 at 15:31
0

Your question inspired me to add new functionality to my application VS Solution Dependency Visualizer: the latest version lists all directories used in a project and VS solution.

While this does not "copy the solution", as you requested, it gives you an overview of where your files are located.

devio
  • 36,858
  • 7
  • 80
  • 143