How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012?

自作多情 提交于 2019-12-19 16:13:21

问题


As title states: How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012?

It is such a simple option, and it seems to be unavailable.


回答1:


Here is the good news: If you have Blend for Visual Studio 2012 installed, which came with my Microsoft Visual Studio 2012 Professional installation, then you can do the following:

  1. Save the project in Microsoft Visual Studio 2012.
  2. Open Blend for Visual Studio 2012.
  3. Open the project you are working on.
  4. Go to File > Save Copy of Project
  5. Open copy of project in Microsoft Visual Studio 2012.

And here is your new copy. A few remarks:

  • The copy function does act like a Clean Build though, so keep in mind that you need to rebuild everything.
  • Also make sure that you select the correct Configuration in Microsoft Visual studio 2012 again.
  • You will still need to remove the project itself in Microsoft Visual Studio 2012.



回答2:


What I've found to work so far, assume you have a solution folder structure like so:

mysolution
    mysolution
    mysolution.sln

You then copy (literally Ctrl+C & Ctrl-V) everything so it looks like this:

mysolution
    mysolution
    mysolution-copy
    mysolution.sln
    mysolution-copy.sln

Open file mysolution-copy.sln with a text editor and replace "mysolution\mysolution.vbproj" with "mysolution-copy\mysolution.vbproj"

Then open mysolution-copy.sln file with Visual Studio and build it...now it should all work again.



来源:https://stackoverflow.com/questions/19293431/how-to-make-a-copy-of-a-project-solution-in-microsoft-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!