How can I clone a .NET solution?

Posted by tobinharris on Stack Overflow See other posts from Stack Overflow or by tobinharris
Published on 2008-10-03T09:37:55Z Indexed on 2012/11/28 5:05 UTC
Read the original article Hit count: 133

Filed under:
|

Starting new .NET projects always involves a bit of work. You have to create the solution, add projects for different tiers (Domain, DAL, Web, Test), set up references, solution structure, copy javascript files, css templates and master pages etc etc.

What I'd like is an easy way of cloning any given solution.

If you use copy/paste, the problem is that you need to then go through renaming namespaces, assembly names, solution names, GUIDs etc.

Is there a way of automating this?

Something like this would be great:

solutionclone.exe --solution=c:\code\abc\template.sln --to=c:\code\xyz --newname=MySolution

I'm aware that Visual Studio has project templates, but I've not seen solution templates.

Ideas welcome, thanks in advance folks!

© Stack Overflow or respective owner

Related posts about .NET

Related posts about visual-studio