Create Copy of Solution

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

Environment: VS.NET 2003/VB.NET

I want to make a copy of a solution to try certain changes without risking
the working version. I don't see any "Save Solution As" option. What steps
do I need to take to make a full copy of a solution that will be a true
stand alone copy - no references back to the original?
 
Just make a copy of the folder the solution is in and work with the copy.

If it's a web application then you also need to do the following:

- make the new folder a virtual root
- open the web app project (not the solution) in VS
- do a save all and save the new solution file into the new folder
 
The easiest way to me to accomplish this is to go to the
explorer window and make a copy of the solution folder.
Then, I rename it the desired name. I then edit the SLN
file as text with Notepad (from the Open With context
menu). If there are any literal paths or relative paths
(..\) that are pointing to the original path, change
them. If you've got embedded resources, they might be in
other directories. In that case, you'd need to edit the
VBPROJ file with Notepad too. Make the same type of
changes here as well. It may sound difficult, but it's
not. Just use Search and Replace. You shouldn't have but
a few minutes of work ahead of you.
 
Thanks - That seems to work. In my case I found no paths in either the sln
or vbproj files.

Wayne
 
Back
Top