Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting a project as a separate project from the Visual Studio solution

I'm using Visual Studio 2013 and I have a solution that contains multiple projects.

I would like to extract one project from a solution to create a new, separate solution, that would only contain this one project.

Does anyone know how to do this?

like image 981
Oleksii Avatar asked May 17 '15 16:05

Oleksii


2 Answers

Copy the project folder into separate folder, open the .csproj file, press CTRL + S, it will open the save dialog and you will save the .sln file. That is it.

like image 140
Haitham Shaddad Avatar answered Nov 18 '22 17:11

Haitham Shaddad


If by "Extract", you mean "Duplicate" your project and start a new solution with this project, here is what you can do:

  1. Create a new solution in Visual Studio
  2. Copy your Project folder in the root of the new solution
  3. Right click on the solution => Add existing Project and select the project file (*.csproj in this case)
like image 31
Sébastien Sevrin Avatar answered Nov 18 '22 17:11

Sébastien Sevrin