views:

162

answers:

4

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.

A: 

VS.NET Cleaner looks like it might be a good match. For code organization, you can try NArrange at CodeProject.

You'll also want to take a look at previous SO questions on organizing and structuring your solutions.

0A0D
Have you even *read* what it does? And tried it? Or was it the first thing that Google came up with?It deletes small files that are not needed. "Some Visual Studio plug-ins like ReSharper generates lots of small files, and you can delete them with this application. You can select what you want to delete and what not, and extend this to your needs."
Wim Hollebrandse
Yes, I did.. he wants code cleanup and file organization. I have linked to at least four different solutions for him
0A0D
You edited your initial answer with three other possibilities. VSNET Cleaner does not re-organise your existing projects properly.
Wim Hollebrandse
@Wim: Which is why you should wait until after 5 mins until I am done working on my answer before downvoting :)
0A0D
Ah well, I see you've returned the 'favour' for an answer that is actually accurate. Thanks.
Wim Hollebrandse
Comme ci, comme ça
0A0D
That's a stupid remark. It's not about downvoting people who downvote you! Grow up.
Wim Hollebrandse
@Wim: Your answer wasn't complete, until you edited it. Now it's been upvoted. To each his own
0A0D
+2  A: 

How about cleaning it up in the first place?

Friends don't share messy solutions with friends

Mark Seemann
+8  A: 

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 Hollebrandse
I'm looking for an automatic solution.
TTT
And I said there isn't as far as I know. It's a 2 minute job, honestly.
Wim Hollebrandse
It's not a 2 minute job. There may be lots of references to fix.
reinierpost
+2  A: 

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
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.
0xA3