Asked by:
Creating Identical Copy of Solution

Question
-
User1122355199 posted
Hello everyone and thanks for your help in advance. I need to update the nugget packages in a solution as it appears some of the MVC functionality is not working correctly. However, since this project is used extensively in production. I would prefer to make an identical copy of the solution under a different name before updating the packages as I've heard some nightmare stories of updating gone bad. I've read several posts about making copies and opening under another name, but I suspect that is not the best way to handle this. Any help would be appreciated.
Tuesday, October 17, 2017 1:45 AM
All replies
-
User347430248 posted
Hi kmcnet,
it is better to be on safe side.
so I suggest you to take a backup of your project and then try to upgrade the original project.
if all goes well and you successfully upgrade it then you can discard the backup.
otherwise you can get your project back from the backup.
further you can try to use TFS for your source code management or use GIT for code management.
multiple members of your team can work on same project on same time.
and you can also recover our code from it.
Reference:
Regards
Deepak
Tuesday, October 17, 2017 3:19 AM -
User1122355199 posted
Thanks for the response. But isn't there a way to create copies of the project and load them into another project?
Tuesday, October 17, 2017 11:16 AM -
User475983607 posted
kmcnet
Thanks for the response. But isn't there a way to create copies of the project and load them into another project?
Just right click on the project/solution folder, click save, then past it elsewhere on your hard drive using Windows explorer not solution explorer in Visual Studio. Or export the project to a zip. Usually a solution is a top level folder with the projects files inside. The solution file is nothing more than a XML file that references the project files. If the project folders are spread across the hard drive then you'll need to come up with a plan but still it is just a copy and paste.
After this, you should look into using a code repository as that's what they are for - keeping track of code changes.
Tuesday, October 17, 2017 11:30 AM -
User347430248 posted
Hi kmcnet,
you had asked,"But isn't there a way to create copies of the project and load them into another project?".
To copy projects
-
In Windows Explorer, locate and select the project you want to copy.
-
On the Edit menu, select Copy.
-
Select the destination folder, and select Paste from the Edit menu.
-
In Solution Explorer, add the project to a solution.
To copy Web projects in Solution Explorer
-
In Solution Explorer, select the Web project you want to copy.
-
On the Website menu, select Copy Web Site.
Reference:
Regards
Deepak
Wednesday, October 18, 2017 3:14 AM -