How can I save a Visual Studio project with different name (like save as)?

Viewed 41503

In Visual Studio, I usually call my start project as project V 1_0. Going forward with the project, adding parts, i have the necessity to maintain the previous versions and save the newest with different file name, as project v 1_5 or project v 2_0 to have the history and a backup.

Under File, there is the possibility to save the project As something else, but its only the project file (.sln). What about all the folders and relative files?

How can I save all as forward release?

5 Answers
  1. Open the folder where the solution and the projects are.
  2. Make a copy of the desired project folder.
  3. Rename the *.csproj and *.sln file in the copied project folder to the new project name.
  4. Open the *.sln file with a text editor and change the old project name with new one and save it.
  5. Double click *.sln file and open it.

This worked for me. (Visual Studio - version 16)

to save as a back up - introduce an error into the MainWindow.xaml.cs. e,g. type 'ERROR' after the final '}' Press - 'Close Solution'. Because their is an error the 'Save As' option' appears. If their is no error it does not give the 'Save As option', just goes ahead and saves !!

If or when you load the back up, remove the error

What genius at Microsoft decided this !!

Related