Share via


How to archive/transfer projects/solutions in Visual Studio to another computer?

Question

Sunday, February 24, 2013 6:53 PM

Hi To the community.

I am relatively new to Visual Studio and have a solution that is composed of several projects. Being new to VS I was not as careful about putting the projects in the same directory.

So, I would like to transfer the solution and its component projects to another computer. What I am finding is that as far as I know I would have to "hunt down" the individual project directories and then transfer them to the other computer and then re-assemble the solution from scratch.

Clearly I must be missing a whole lot. For example, in other programs by, say Altera and Xilinx, there is a way to "archive" the project in one step. I can then transfer the archive file anywhere I want to and then expand the archive on another computer. Done.

Is there a similar mechanism for doing this in Visual Studio?

Thank You

Tom

All replies (2)

Sunday, February 24, 2013 7:22 PM âś…Answered

How you orgainze you large projects is up to you.  Visual Studio defaults to storing all the project files under "Document and Setttings", but you can put your project under any folder you like.  If you orgainize your projects so all the sub-projects are in the same folder.  You may want to build you projects using a command file instead of building your project from insdie visual studio.  With a command file you can specify the locations of each of the sub-projects using relative path names like "..\.\project1".

jdweng


Sunday, February 24, 2013 8:13 PM | 1 vote

If you are using VS 2012, you can right click on the project in the solution explorer and click "Open Folder in File Explorer", near the bottom. This will open the location of the project. You can then cut this and copy it into a more relevant directory. You can then remove the project from the solution (right click, remove), and add the newly copied one (right click on solution, add->existing project) to link it back to the solution. You can then simply compress the folder containing the solution (and relevant projects), and send that!

While it doesn't necessarily fix your problem, it may help?

I may have entirely misinterpreted this question, in which case I'm sorry, but I hope this helps anyway!

Hnefatl